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)

static IterableIterator scanLog_unstructure_iterator(S progID, S fileName) {
  ret scanLog_unstructure_iterator(getProgramFile(progID, fileName));
}

static IterableIterator scanLog_unstructure_iterator(S fileName) {
  ret scanLog_unstructure_iterator(getProgramFile(fileName));
}

static IterableIterator scanLog_unstructure_iterator(File file) {
  final Iterator<S> it = scanLog_iterator(file);
  ret iteratorFromFunction(func -> O {
    while (it.hasNext()) pcall {
      ret unstructure_dropLeadingTimestamp(it.next());
    }
    null;
  });
}

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: 434 / 479
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011917 - scanLog_unstructure_iterator_allowNonQuoted