-
Notifications
You must be signed in to change notification settings - Fork 9
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
add additivity=false to prevent double logging #843
add additivity=false to prevent double logging #843
Conversation
I'm not an |
There are only three |
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.
See comments
I see now that a couple of these |
This is the very first scenario cited on the doc page as an example where |
yes, you're quite right, and this confirms what we just found with the chef version, is that having additivity=false on loggers w/o specific appenders results in no logs at all for that logger. I'll fix things up. |
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.
A couple remaining tweaks
Rationale
the block at the start of the Loggers could cause the subsequent calls to create double logs. Setting additivity="false" will prevent that.
https://logging.apache.org/log4j/2.x/manual/configuration.html#Additivity
Related Pull Requests
Changes