1 | svoid teeSystemOutAndErrToFile(File f) ctex { |
2 | print("Logging to " + f2s(f)); |
3 | FileOutputStream fileOut = newFileOutputStream(f, true); |
4 | System.setOut(teePrintStream(System.out, fileOut)); |
5 | System.setErr(teePrintStream(System.err, fileOut)); |
6 | } |
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: | 317 / 355 |
Version history: | 2 change(s) |
Referenced in: | [show references] |