static void logOutput() { set(getJavaX(), "customSystemOut", new Appendable() { File logFile = getProgramFile("output.log"); // only using this one public Appendable append(CharSequence cs) { logQuoted(logFile, cs.toString()); return this; } public Appendable append(char c) { return this; } public Appendable append(CharSequence s, int start, int end) { return this; } }); }
Began life as a copy of #1000950
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
1 comment(s) hidden. show
Snippet ID: | #1002226 |
Snippet name: | logOutput - logs all program output to disk |
Eternal ID of this version: | #1002226/1 |
Text MD5: | 882eeae53d6dde5421b55b30bf502f68 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-27 03:49:58 |
Source code size: | 434 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 935 / 1136 |
Referenced in: | [show references] |