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

Update logging configuration after changes in distribution #346

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

frant-hartm
Copy link
Contributor

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.

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.
@frant-hartm frant-hartm added this to the 5.1 milestone Feb 14, 2022
Copy link
Contributor

@ldziedziul ldziedziul left a 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?

Copy link
Contributor

@ldziedziul ldziedziul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Contributor

@SeriyBg SeriyBg left a 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}
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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}.

@frant-hartm frant-hartm merged commit a331113 into hazelcast:master Feb 14, 2022
ldziedziul pushed a commit to ldziedziul/hazelcast-docker that referenced this pull request Jun 1, 2022
…#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
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.

3 participants