Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1019451 // simplifyLogLineForDisplay

JavaX fragment (include)

sS simplifyLogLineForDisplay(S s) {
  s = unquote(s);
  if (startsWithDigit(s) && isBetween(parseFirstLong(s), dateBeforeAnyLogFiles(), dateInTheFarFuture()))
    s = trimSubstring(s, indexOfNonDigit(s));
  s = dropAnyPrefix(s, ": ", "| ");
  s = replaceAnyPrefix("{", s, "lhm{", "hm{");
  ret shorten(s, 100);
}

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: 304 / 363
Version history: 5 change(s)
Referenced in: [show references]