-
Notifications
You must be signed in to change notification settings - Fork 82
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
Update logging configuration after changes in distribution #346
Update logging configuration after changes in distribution #346
Conversation
Set default value for LOGGING_LEVEL in log4j2 properties. In hazelcast/hazelcast#20528 we remove setting the default value in the scripts and moved it do the log4j2 config file. In Docker image we use specific config file without rolling file appender (only log to console). The changes in the main distribution need to be applied to this config files as well.
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.
Looks good. What do you think about adding info about LOGGING_CONFIG=log4j2-json.properties
to the README.md?
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.
Nice!
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.
One small question. Other than that LGTM
|
||
rootLogger.level=${env:LOGGING_LEVEL} | ||
rootLogger.level=${env:LOGGING_LEVEL:-INFO} |
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.
Is the -
a typo, or is it a supported syntax?
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.
It is the syntax for the default value - see https://logging.apache.org/log4j/2.x/manual/lookups.html.
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.
Oh, I see. I thought the syntax was the same as for spring, that is ${LOGGING_LEVEL:INFO}.
…#346) Set default value for LOGGING_LEVEL in log4j2 properties. In hazelcast/hazelcast#20528 we remove setting the default value in the scripts and moved it do the log4j2 config file. In Docker image we use specific config file without rolling file appender (only log to console). The changes in the main distribution need to be applied to this config files as well. * Document LOGGING_CONFIG in the Readme
In the Docker image, we use a specific config file without the rolling file
appender (only log to console). The changes in the main distribution
need to be applied to these config files as well.
Set default value for LOGGING_LEVEL in log4j2 properties.
In hazelcast/hazelcast#20528 we removed setting
the default value in the scripts and moved it to the log4j2 config file.