[logback-user] Trouble with Logback / JUL configuration
Ceki Gulcu
ceki at qos.ch
Wed Jun 17 13:34:57 CEST 2009
Flavio Donzé wrote:
>
> “This handler will redirect jul logging to SLF4J. However, only logs
> enabled in j.u.l. will be redirected. For example, if a log statement
> invoking a j.u.l. logger disabled that statement, by definition, will
> not reach any SLF4JBridgeHandler instance and cannot be redirected”
Hello Flavio,
When you log using a jul logger, the jul logger gets invoked, and if
it is enabled for the level with which it was invoked, and if
SLF4JBridgeHandler was installed, then logs would go to SLF4J.
In your example, you are using the FINE, FINER and FINEST levels which
are all disabled by default (in jul). You just need to enable them by
modifying the logging.properties file in use by your JVM. See
$JAVA_HOME/lib/logging.properties wherer $JAVA_HOME is the folder
where you installed your JDK.
HTH,
--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
More information about the Logback-user
mailing list