[slf4j-user] tomcat6 and slf4j

Kai Gülzau kguelzau at novomind.com
Tue Jun 8 12:11:38 CEST 2010


Is there a "right" way to redirect all logging
to slf4j in tomcat 6?

My current approach is to patch catalina.bat
http://old.nabble.com/Using-logback-in-tomcat-td8074672.html

to add some jars/files to the system classloader:

jul-to-slf4j-1.6.0.jar
slf4j-api-1.6.0.jar
logback-core-0.9.21.jar
logback-classic-0.9.21.jar
logback.xml

and to change the conf/logging.properties to:

handlers = org.slf4j.bridge.SLF4JBridgeHandler
org.slf4j.bridge.SLF4JBridgeHandler.level = FINEST


Some other ideas or suggestions?


Regards,

Kai Gülzau


More information about the slf4j-user mailing list