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

17
LINES

< > BotCompany Repo | #1011695 // scanLog_unstructure_iterator - scan log, unstructure() each line. now also handles files made with logStructureWithDate

JavaX fragment (include)

1  
static IterableIterator scanLog_unstructure_iterator(S progID, S fileName) {
2  
  ret scanLog_unstructure_iterator(getProgramFile(progID, fileName));
3  
}
4  
5  
static IterableIterator scanLog_unstructure_iterator(S fileName) {
6  
  ret scanLog_unstructure_iterator(getProgramFile(fileName));
7  
}
8  
9  
static IterableIterator scanLog_unstructure_iterator(File file) {
10  
  final Iterator<S> it = scanLog_iterator(file);
11  
  ret iteratorFromFunction(func -> O {
12  
    while (it.hasNext()) pcall {
13  
      ret unstructure_dropLeadingTimestamp(it.next());
14  
    }
15  
    null;
16  
  });
17  
}

Author comment

Began life as a copy of #1011459

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011695
Snippet name: scanLog_unstructure_iterator - scan log, unstructure() each line. now also handles files made with logStructureWithDate
Eternal ID of this version: #1011695/4
Text MD5: 996c268d5643ccf157ea05a879c55dd6
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-26 21:06:03
Source code size: 563 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 554 / 597
Version history: 3 change(s)
Referenced in: [show references]