[logback-user] Trouble setting up logback in tomcat.

Marten Deinum marten.deinum at conspect.nl
Wed Dec 20 16:07:29 CET 2006


Hello Sébastien,

Thanks for taking the time to respond.


Sébastien Pennec wrote:
> 
> I've seen that you put commons-logging-1.1.jar *and*
> jcl104-over-slf4j-1.1.0-RC1.jar 
> in commons/lib directory.
> ...
> On the other hand, intercepting Tomcat's own *internal* logging is
> something that we 
> do not recommand at this time.
> 
That was one of the many feeble attemps to get logging working for our
application, however I already removed them and now have just the logging
tomcat provides (for tomcat that is). So no tomcat logging is going thru
slf4j at the moment.


Sébastien Pennec wrote:
> 
> The information I gave you should allow you to configure and use logback
> as your 
> logging implementation, for your application.
> 
I tried it with the jars and configuration you mentioned, however I still
have no logging :-(.

Currently I have the following logging jars and configuration

WEB-INF/lib/slf4j-api-1.1.0-RC1.jar
WEB-INF/lib/logback-core-0.7.1.jar
WEB-INF/lib/logback-classic-0.7.1.jar
WEB-INF/lib/jcl104-over-slf4j-1.1.0-RC1.jar (we use some libraries in our
web-app which use/require commons-logging)
WEB-INF/classes/logback.xml

Here is the contents of my  http://www.nabble.com/file/4968/logback.xml
logback.xml  file. It might be a configuration issue then? The configuration
you see is the one generated (almost) with the configuration tool on the
logback website. In the config I intentionally set the org.springframework
logging to debug, it generates lots of debugging output, but alas I see
none, not even a file is generated.

Thanks again, kind regards,
 Marten
-- 
View this message in context: http://www.nabble.com/Trouble-setting-up-logback-in-tomcat.-tf2858698.html#a7991604
Sent from the Logback User mailing list archive at Nabble.com.




More information about the Logback-user mailing list