1 | sS simplifyLogLineForDisplay(S s) {
|
2 | s = unquote(s); |
3 | if (startsWithDigit(s) && isBetween(parseFirstLong(s), dateBeforeAnyLogFiles(), dateInTheFarFuture())) |
4 | s = trimSubstring(s, indexOfNonDigit(s)); |
5 | s = dropAnyPrefix(s, ": ", "| "); |
6 | s = replaceAnyPrefix("{", s, "lhm{", "hm{");
|
7 | ret shorten(s, 100); |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019451 |
| Snippet name: | simplifyLogLineForDisplay |
| Eternal ID of this version: | #1019451/6 |
| Text MD5: | 61d8a1ad6d8acac05a22a7f6ee7cf27b |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-11-07 02:37:20 |
| Source code size: | 319 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 526 / 600 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |