svoid teeSystemOutAndErrToFile(File f) ctex { print("Logging to " + f2s(f)); FileOutputStream fileOut = newFileOutputStream(f, true); System.setOut(teePrintStream(System.out, fileOut)); System.setErr(teePrintStream(System.err, fileOut)); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017325 |
Snippet name: | teeSystemOutAndErrToFile |
Eternal ID of this version: | #1017325/3 |
Text MD5: | 151abe83c7653bf1d3adaabce75cf609 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 21:23:57 |
Source code size: | 252 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 300 / 337 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |