-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for loading files, decoding them as JSONL, and formatting them using a Logback-like format string. #46
Conversation
@Henry8192 Please help triage the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some JSDocs.
|
||
messages.push(m); | ||
lines.set(currentLine, logEventNum); | ||
currentLine += m.split("\n").length - 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something to think about for the future---perhaps we should return the number of lines per log event from the decoder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm.. how do we plan to use that? With that approach, we would have to use an accumulator to deduct the log event Num (index) from the editor cursor line, right? (Do you mean we send the lines per log event to the renderer, and let the renderer calculate once and cache the beginLineNumToLogEventNum[]
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just mean we could use it here instead of calling msg.split('\n').length - 1
every time we load a page.
Co-authored-by: kirkrodrigues <[email protected]>
…'propName' to 'key'.
9597d7c
to
2d2b800
Compare
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: kirkrodrigues <[email protected]>
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: Henry8192 <[email protected]>
Co-authored-by: kirkrodrigues <[email protected]>
References
#45
Description
Validation performed
/public/test
. (Can be downloaded and extracted from example.jsonl.zip)npm run start
.