log-viewer icon indicating copy to clipboard operation
log-viewer copied to clipboard

...the log record is too big

Open nathangary opened this issue 4 years ago • 13 comments

hello. how to load more?

nathangary avatar Dec 08 '21 10:12 nathangary

not implemented yet.

sevdokimov avatar Dec 08 '21 10:12 sevdokimov

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

nathangary avatar Dec 09 '21 14:12 nathangary

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

sevdokimov avatar Dec 10 '21 06:12 sevdokimov

image image

nathangary avatar Dec 14 '21 05:12 nathangary

Look at the picture above.

nathangary avatar Dec 14 '21 05:12 nathangary

hello, help.

nathangary avatar Dec 14 '21 07:12 nathangary

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?

sevdokimov avatar Dec 14 '21 07:12 sevdokimov

why can SpringBoot detect log formats?

nathangary avatar Dec 14 '21 08:12 nathangary

image this is right

nathangary avatar Dec 14 '21 08:12 nathangary

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

nathangary avatar Dec 14 '21 08:12 nathangary

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 avatar Dec 14 '21 09:12 sevdokimov

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

sevdokimov avatar Dec 14 '21 09:12 sevdokimov

Thank you! I'll try.

nathangary avatar Dec 14 '21 09:12 nathangary