1 | sbool logModuleOutput_installed; |
2 | |
3 | static void logModuleOutput() {
|
4 | if (logModuleOutput_installed) ret; |
5 | logModuleOutput_installed = true; |
6 | final File logFile = getProgramFile("output.txt");
|
7 | final LineBuffer buf = new(voidfunc(S line) {
|
8 | appendToTextFile(logFile, "[" + localDateWithMilliseconds() + "] " + line + "\n"); |
9 | }); |
10 | |
11 | print_forAllThreads(voidfunc(S s) {
|
12 | buf.append(s); |
13 | }); |
14 | } |
Began life as a copy of #1006665
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: | #1013845 |
| Snippet name: | logModuleOutput - logs all prints from module in {programID}/output.txt with time stamps |
| Eternal ID of this version: | #1013845/6 |
| Text MD5: | 2b5d0aa98ee2f24da0f45e6730e69068 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-27 15:12:42 |
| Source code size: | 414 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 818 / 814 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |