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

Deprecate log4j2.defaultStatusLevel property #2481

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

ppkarwasz
Copy link
Contributor

The Log4j system property log4j2.defaultStatusLevel has almost the same purpose as the log4j2.statusLoggerLevel:

  • the log4j2.statusLoggerLevel property sets the level of the fallback status logger listener before a configuration is parsed,
  • the log4j2.defaultStatusLevel property sets the level of the fallback status logger listener after a configuration is parsed (unless the configuration has a status attribute).

Removing one of them makes -Dlog4j2.statusLoggerLevel=WARN a viable less verbose alternative to -Dlog4j2.debug.

@ppkarwasz ppkarwasz self-assigned this Apr 19, 2024
The Log4j system property `log4j2.defaultStatusLevel` has almost the
same purpose as the `log4j2.statusLoggerLevel`:

* the `log4j2.statusLoggerLevel` property sets the level of the fallback
  status logger listener **before** a configuration is parsed,
* the `log4j2.defaultStatusLevel` property sets the level of the
  fallback status logger listener **after** a configuration is parsed
  (unless the configuration has a `status` attribute).

Removing one of them makes `-Dlog4j2.statusLoggerLevel=WARN` a viable
less verbose alternative to `-Dlog4j2.debug`.
@ppkarwasz ppkarwasz force-pushed the feature/2.x/deprecate_log4j2_default_status_level branch from 80cbc31 to ecb99af Compare April 26, 2024 19:13
@ppkarwasz ppkarwasz merged commit ecb99af into 2.x Apr 26, 2024
10 checks passed
@ppkarwasz ppkarwasz deleted the feature/2.x/deprecate_log4j2_default_status_level branch April 26, 2024 20:04
@ppkarwasz ppkarwasz mentioned this pull request Apr 30, 2024
3 tasks
@ppkarwasz ppkarwasz added this to the 2.24.0 milestone Aug 16, 2024
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.

2 participants