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
Send all the Diagnostics logs to the stdout, instead of local files #16941
Send all the Diagnostics logs to the stdout, instead of local files #16941
Conversation
hazelcast/src/main/java/com/hazelcast/internal/diagnostics/DiagnosticsLogOutput.java
Outdated
Show resolved
Hide resolved
Could you add a line of logging: if file based logging enabled, write the path of the file This will make debugging easier. Apart from that it looks good to go. No major remarks. |
I fixed the naming problem and added more log lines about diagnostics log output. Could you review again? |
run-lab-run |
Sorry, wrong button. |
hazelcast/src/main/java/com/hazelcast/internal/diagnostics/DiagnosticsLogFile.java
Outdated
Show resolved
Hide resolved
Minor logging improvement request. Otherwise good to go. |
hazelcast/src/main/java/com/hazelcast/internal/diagnostics/Diagnostics.java
Outdated
Show resolved
Hide resolved
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.
Changes LGTM, but wondering whether we want to keep escaping the more natural and dev friendly logger approach. Dev & Op teams are accustomed by now to having a logger and its configuration.
Hi team, Is there any update on this topic? |
Sorry for the long wait @buraksezer and thank you for the contribution (cc @Holmistr ). I must admit I was delaying merging it because I wanted to take a closer look. Regarding @tkountis 's comment, I agree we could switch the whole diagnostics to use a logger, then users could seamlessly switch between file, stdout, network and more outputs. I'll create an issue as I see it as a breaking change for the future. Again, thank you for your contribution and hope to see you around soon. |
Is this configuration working on 4.2? Thank you! |
This PR implements #16844. Now we can send all the diagnostics logs to the stdout by using the following:
Could you please review my PR?