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

Change the loglevel of the provided logger only when it is the Logback logger #1425

Conversation

paul-dingemans
Copy link
Collaborator

Description

Change the loglevel of the provided logger only when it is the Logback logger

For non-Logback loggers, it is only checked whether the enabled log level
of the provided logger, is matching with the loglevel that Ktlint expects
based on settings.

Currently, only the Logback Classic logger (ch.qos.logback.classic.Logger)
allows to change it loglevel dynamically.

Closes #1421

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

…k logger

For non-Logback loggers, it is only checked whether the enabled log level
of the provided logger, is matching with the loglevel that Ktlint expects
based on settings.

Currently, only the Logback Classic logger (ch.qos.logback.classic.Logger)
allows to change it loglevel dynamically.

Closes pinterest#1421
@paul-dingemans
Copy link
Collaborator Author

Close in favor of #1424

@paul-dingemans paul-dingemans deleted the 1421-logger-initializer branch March 20, 2022 14:20
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.

Logger failes to initialize when not providing the Classic Logback Logger in 0.45.0
1 participant