Skip to content
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

support all of unified JVM logging decorations #269

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mayswind
Copy link

Hi,
I found the latest code only supports the specific decorations for unified JVM logging. If other decorations are configured (e.g. -Xlog:safepoint=trace,class*=info,age*=trace,gc*=info,gc+heap=trace:file=../gclogs/gc.log:time,pid,tid,level,tags:filecount=0), the app would fail to load the logs. I modified the relevant code to support all decorations. Additionally, I make the GCEvent can getting the time from any one decoration.

Furthermore, I find if the app load the log which contains oom logs, a large number of warning messages would be printed. I think the app should ignore it, so I add this tag to the exclude list.

Repository owner deleted a comment from awesomefly Apr 26, 2023
@chewiebug
Copy link
Owner

chewiebug commented Jun 7, 2023 via email

@mayswind
Copy link
Author

mayswind commented Jun 9, 2023

Hi Thank you very much for your contribution! It looks good. Would you have time to add some more unittests for the method DataReaderUnifiedJvmLogging#createGcEventWithStandardDecorators()? It has quite a lot of ifs that have no unittest to make sure, the logic will not break during future refactorings. Best regards Jörg

Hi, I have added more unit tests, and now the unit tests can cover the new logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants