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

21
LINES

< > BotCompany Repo | #1016255 // localPrint - print to program's own log only (and to System.out)

JavaX fragment (include)

please include function print.

static void localPrint() { localPrint(""); }
static <A> A localPrint(S s, A o) { localPrint(s + o); ret o; }

// returns original object
static <A> A localPrint(A o) {
  ping();
  if (print_silent) ret o;
  S s = S.valueOf(o) + "\n";
  localPrint_raw(s);
  ret o;
}

static void localPrint_raw(String s) {
  s = fixNewLines(s);
  StringBuffer loc = local_log;
  if (loc != null) 
    print_append(loc, s, local_log_max);
  System.out.print(s);
}

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: #1016255
Snippet name: localPrint - print to program's own log only (and to System.out)
Eternal ID of this version: #1016255/2
Text MD5: 26d7c2ce2eefded3d29c0f42d340ff06
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-12 15:04:57
Source code size: 497 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 303 / 328
Version history: 1 change(s)
Referenced in: [show references]