Tomcat logs, plus one log config per webapp

Hi, I succeeded merging all logs there is in tomcat, webapps, and internal libraries by doing 3 things: -1 placing these JARs in commons/lib: logback-classic-0.9.16.jar logback-core-0.9.16.jar slf4j-api-1.5.8.jar log4j-over-slf4j-1.5.8.jar jul-to-slf4j-1.5.8.jar jcl-over-slf4j-1.5.8.jar 2- adding my logback.xml file to commons/classes 3- removing log4j and commons-logging JARs from my webapps. What I need to do now is have separate logging per webapp. It seems to me that this is where problems can start, according to this post: http://osdir.com/ml/java.logback.user/2008-07/msg00024.html Is this still the best way to do that? If so, is there any more details on how to write the "logback context loader" as suggested in there? BTW, it is hard for me to know if this is best targetted at SLF4J or LogBack lists... -- Mel T.

Mel T wrote:
I succeeded merging all logs there is in tomcat, webapps, and internal libraries by doing 3 things: ... What I need to do now is have separate logging per webapp. ...
After some experiments, I decided to not put SLF4J and logback in tomcat, and instead, I just use it in my webapps. There were suggestion to put the SLF4J jars in server/lib, but this is gone in tomcat6 and attempts to activate that through catalina.properties did not work (server.loader does not seem to be used in tomcat). Therefore, each webapp has ts own set of copies of the SLF4J, and logback, and has its own config file and things work smoothly. -- Mel T. -- View this message in context: http://www.nabble.com/Tomcat-logs%2C-plus-one-log-config-per-webapp-tp246519... Sent from the Logback User mailing list archive at Nabble.com.
participants (2)
-
Mel T
-
Mel T.