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

Unwanted logging by StatusLogger #3100

Open
morvael opened this issue Oct 17, 2024 · 4 comments
Open

Unwanted logging by StatusLogger #3100

morvael opened this issue Oct 17, 2024 · 4 comments

Comments

@morvael
Copy link

morvael commented Oct 17, 2024

Description

I think after the changes in 4e00ea4 I can now observe logging from org.apache.logging.log4j.core.config.AbstractConfiguration ("Starting configuration...", "Start watching for changes to...", etc) which were previously hidden by default. I think that logger used to by WARN by default, now it's INFO by default.

Configuration

Version: 2.24.1

Operating system: Linux Mint 21.3

JDK: Adoptium 21.0.4+7

@morvael
Copy link
Author

morvael commented Oct 17, 2024

The following lines are logged at the start:

Starting configuration XmlConfiguration[location=… , lastModified=…]...
Start watching for changes to … every 0 seconds
Configuration XmlConfiguration[location=… , lastModified=…] started.
Stopping configuration org.apache.logging.log4j.core.config.DefaultConfiguration@…
Configuration org.apache.logging.log4j.core.config.DefaultConfiguration@… stopped.

And these at the end:

Stopping configuration XmlConfiguration[location=… , lastModified=…]...
Configuration XmlConfiguration[location=… , lastModified=…] stopped.

@ppkarwasz
Copy link
Contributor

Hi @morvael,

The default status logger level in version 2.24.1 is still ERROR. Can you check:

  1. If your configuration file does not use the deprecated status attribute.
  2. If you don't define the deprecated Log4jDefaultStatusLevel, log4j2.defaultStatusLevel or LOG4J_DEFAULT_STATUS_LEVEL properties in a property source (Java System properties, environment variables, log4j2.component.properties file).
  3. If you don't define the log4j2.statusLoggerLevel property as Java System property, environment variable or in a log4j2.StatusLogger.properties file.

@ppkarwasz ppkarwasz added waiting-for-user More information is needed from the user and removed waiting-for-maintainer labels Oct 17, 2024
@morvael
Copy link
Author

morvael commented Oct 17, 2024

I will re-verify but I actually tried to use any and all of them to change the log level to WARN and nothing changed, it still printed that INFO.

@github-actions github-actions bot added waiting-for-maintainer and removed waiting-for-user More information is needed from the user labels Oct 17, 2024
@morvael
Copy link
Author

morvael commented Oct 17, 2024

I have no guarantee though that some of the dependencies I use doesn't do one of those things :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants