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

log4j2.properties overriding log4j2 configuration #26

Closed
DarkNormal opened this issue May 27, 2021 · 1 comment
Closed

log4j2.properties overriding log4j2 configuration #26

DarkNormal opened this issue May 27, 2021 · 1 comment
Assignees

Comments

@DarkNormal
Copy link

Hi, I'm trying to use the postmark-java dependency and all seems well except for our current logging configuration seems to be getting overridden by the log4j2.properties file from the postmark-java library.

I'm not sure if this properties file should be included in the jar or not - from reading online it's usually warned against for this exact reason.

My current log4j2 configuration is through log4j2.xml, while debugging the application I can see that without the postmark-java dependency my configuration looks like below (XmlConfiguration, level shown as DEBUG):
image

While with the dependency added, the logger is now using values from log4j2.properties (Note the difference here, originally the config was XmlConfiguration, it's now PropertiesConfiguration, also level is now OFF), and no longer logging anything
image

@ibalosh ibalosh self-assigned this Jun 21, 2021
@ibalosh
Copy link
Contributor

ibalosh commented Jun 28, 2021

Hi @DarkNormal

this issue should be resolved in latest 1.7.2 version.

Igor

@ibalosh ibalosh closed this as completed Jun 28, 2021
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

No branches or pull requests

2 participants