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

8
LINES

< > BotCompany Repo | #1015690 // recordSuccessOrFailure - records success if value is true & failure if value is false

JavaX fragment (include)

1  
static bool recordSuccessOrFailure(S info, bool b) {
2  
  logStructWithDate(b ? successLog() : failureLog(),
3  
    litorderedmap(result := b ? "SUCCESS" : "FAILURE",
4  
      programID := programID(),
5  
      programName := programName(),
6  
      +info);
7  
  ret b;
8  
}

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: #1015690
Snippet name: recordSuccessOrFailure - records success if value is true & failure if value is false
Eternal ID of this version: #1015690/1
Text MD5: ca03db03c4abfda38b645d282f495bb1
Author: stefan
Category: javax / reporting
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-23 13:08:43
Source code size: 260 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 386 / 428
Referenced in: [show references]