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

9
LINES

< > BotCompany Repo | #1010277 // logStructureWithDate

JavaX fragment (include)

static <A> A logStructureWithDate(File logFile, A o) {
  logQuoted(logFile, now() + " " + structure(o));
  ret o;
}

// quick version - log to file in program directory
static <A> A logStructureWithDate(S fileName, A o) {
  ret logStructureWithDate(getProgramFile(fileName), o);
}

Author comment

Began life as a copy of #1002393

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010277
Snippet name: logStructureWithDate
Eternal ID of this version: #1010277/3
Text MD5: a92b099fddaf79b58274e40a624c7679
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-10 17:58:16
Source code size: 288 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 388 / 439
Version history: 2 change(s)
Referenced in: [show references]