Skip to content

Logback log level is not propagated to java.util.logging #3924

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

Closed
trecloux opened this issue Sep 8, 2015 · 0 comments
Closed

Logback log level is not propagated to java.util.logging #3924

trecloux opened this issue Sep 8, 2015 · 0 comments
Milestone

Comments

@trecloux
Copy link

trecloux commented Sep 8, 2015

Default setup for spring boot is to use SLF4J and Logback.
The bridge between SLF4J and java.util.logging is installed, so java.util.logging logs are forwarded to SLF4J

Unfortunately, the log level configuration through Logback is not propagated to java.util.logging loggers.

I discovered this issue when trying to see debug logs for tomcat's jdbc connection pool.

I'll submit a pull request to fix this.

trecloux pushed a commit to trecloux/spring-boot that referenced this issue Sep 8, 2015
Adds the LevelChangePropagator logback listener in order to propagate
Logback's log level changes to java.util.logging loggers.

Logback documentation :
http://logback.qos.ch/manual/configuration.html#LevelChangePropagator

Fixes spring-projectsgh-3924
@philwebb philwebb added this to the 1.2.6 milestone Sep 10, 2015
philwebb added a commit that referenced this issue Sep 10, 2015
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