Replies: 2 comments 5 replies
-
After some search, I came up with this dependency I add a contextListener to <?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
<resetJUL>true</resetJUL>
</contextListener>
... and to my main class static {
SLF4JBridgeHandler.removeHandlersForRootLogger();
SLF4JBridgeHandler.install();
} If there is a better way, I would like to know. |
Beta Was this translation helpful? Give feedback.
-
Reviving an older thread. I find the use of JUL quite unfortunate. With just 1 application you can try to add your own JUL handler and then use it with some filter to separate events coming from some classes/packages (loggers), but add more applications (running in the same JVM) to the mix and the problem can easily become pretty much impossible to solve effectively. With more advanced logging frameworks you can at least have a classloader separation. Not here. :-( |
Beta Was this translation helpful? Give feedback.
-
With querydsl-sql 4.4.0 I was using
<logger name="com.querydsl" level="DEBUG"/>
inlogback.xml
to log the queries. This is not working with 5.0.0. What am i missing?.Beta Was this translation helpful? Give feedback.
All reactions