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

11
LINES

< > BotCompany Repo | #1019467 // printAndProgramLog

JavaX fragment (include)

static <A> A printAndProgramLog(S s, A o) {
  printAndProgramLog((endsWithLetterOrDigit(s) ? s + ": " : s) + o);
  ret o;
}

static <A> A printAndProgramLog(A a) {
  S s = str(a);
  print("[" + localDateWithMilliseconds() + "] " + s);
  logQuotedWithDate(programLog(), s);
  ret a;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1019467
Snippet name: printAndProgramLog
Eternal ID of this version: #1019467/5
Text MD5: 4b0b5196bbc09b1c8af29f40941f6d7f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-30 16:21:38
Source code size: 293 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 312 / 359
Version history: 4 change(s)
Referenced in: [show references]