sevdokimov / log-viewer

Web UI for viewing logs
Apache License 2.0
490 stars 107 forks source link

...the log record is too big #89

Open nathangary opened 2 years ago

nathangary commented 2 years ago

hello. how to load more?

sevdokimov commented 2 years ago

not implemented yet.

nathangary commented 2 years ago

i can see the entire log with logviewer.sh. but,springboot can't.

sevdokimov commented 2 years ago

Could you attach the screenshots where you see the entire log? The view should be same.

nathangary commented 2 years ago

image image

nathangary commented 2 years ago

Look at the picture above.

nathangary commented 2 years ago

hello, help.

sevdokimov commented 2 years ago

The format of the log was not detected, so log-viewer shows each line as a separate record. No big multiline records, that's why no "the log record is too big..". I'll add the ability to load hidden parts of big events in the next build.

What is [-] at the beginning of each line? Is it some field with "-" value by default? or it is just 3 characters marking the line begin?

nathangary commented 2 years ago

why can SpringBoot detect log formats?

nathangary commented 2 years ago

image this is right

nathangary commented 2 years ago

image this is wrong. Does it have to do with the version?

sevdokimov commented 2 years ago

why can SpringBoot detect log formats?

Log Viewer looks at the log configuration. On the screenshot above, Log Viewer perceives the text as one line. Most probably it extracted the log format from the log configuration incorrectly. Could you set a breakpoint on com.logviewer.config.LogViewerAutoConfig.loadLogConfiguration() method and check the detected format? LogViewerAutoConfig.loadLogConfiguration() returns the list of configured log files with formats.

sevdokimov commented 2 years ago

You can disable the default log detection using log-viewer.disable-default-configuration-loader=true property and implement the custom com.logviewer.logLibs.LogConfigurationLoader.

nathangary commented 2 years ago

Thank you! I'll try.