I'm currently observing that a 3rd party library (namely javax.mail ) is using java.util.logging.
The version of javaMail is 1.4.7.
I want to use SLF4J LoggingFramwork to bridge JUL to logback.
the slf4j api version is : logback-core|1.0.13
slf4j-api|1.7.5
jul-to-slf4j|1.7.5
In the main function, I'm also install SLF4JBridgeHandler programmatically by invoking:
// Optionally remove existing handlers attached to j.u.l root logger
SLF4JBridgeHandler.removeHandlersForRootLogger();
// add SLF4JBridgeHandler to j.u.l's root logger, should be done once during
// the initialization phase of your application
SLF4JBridgeHandler.install();
but it does'twork, the javaMail also log debug info in my console. my logbak.xml is
<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
is there something wrong?