-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Slf4JLoggingSystem should also configure JUL levels #2923
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
Comments
If you are using logback, JUL should now also be configured : #3926 |
I think this should be fixed by #3926. If you're still having the problem with the latest release please let us know. |
@philwebb per your last comment, I am writing back to report that this issue is still present in Spring Boot 1.5.2 using Log4j2. The only way to get messages from JUL that are below
where as an example:
What can I do to assist with troubleshooting and resolution of this problem? |
@mmoayyed Do you have a sample you can share that shows the problem? |
Sure. This is where I started out originally: https://github.com/apereo/cas-overlay-template There are instructions on the README that explain what one must do to build and deploy. What I can see that once I modify the You can also very easily duplicate this with start.spring.io. Here's what I did:
You can also use demo.zip which is my attempt at duplicating this issue with 1-4 combined. |
Thanks for the sample. Given the lack of a Log4j equivalent of Logback's Instead, the recommended approach with Log4j is to configure the use of This approach works well with the provided sample if you upgrade to Spring Boot 1.5.5 or later (I used 1.5.9), add a dependency on
The need to use a system property makes me wary of enabling this by default, but we could add something to the relevant section of the documentation. I've opened #11660 to do so. |
As discussed here, by default
SLF4JBridgeHandler
only receivesINFO
or higher JUL logsAnd so, enabled lower levels in
application.properties with
"logging.level.xxx" properties doesn't allow to see JUL logs lower than INFO"logging.level.xxx" properties should also be applied to JUL loggers (in addition to Sl4jf loggers) in order to
SLF4JBridgeHandler
to receive all the enabled logsThe text was updated successfully, but these errors were encountered: