[logback-user] Getting tomcat logs through Logback

Ceki Gülcü ceki at qos.ch
Thu Dec 2 22:06:05 CET 2010


What do you mean by Tomcat logs? The http access log?
If so, please see http://logback.qos.ch/access.html

On 02/12/2010 6:54 PM, Pradnya Gawade wrote:
> Hi,
>
> I want to get the tomcat logs through logback. I got following
> reference related to it and planning to try it, the only difference in
> my case would be a Syslog appender instead of a log file:
> http://tomcat.apache.org/tomcat-6.0-doc/logging.html#log4j
>
> This approach required doing some changes in tomcat lib directory etc.
>
> I know Logback provides bridging to legacy APIs like java.util.logging
> http://www.slf4j.org/legacy.html
>
> I used jul-to-slf4j bridge to get the liquibase logs into my web
> application log file. Similarly does Logback provide some thing to get
> tomcat logs through logback. It is OK with me to get the copy of
> tomcat logs and tomcat also logging to to its own log files
> separately. Tomcat uses common logging internally. If I could get some
> way in which user don't have to make any changes in the tomcat
> configuration before/after the application deployment then it will  be
> great. Any inputs?
>
> Thanks,
> Pradnya


More information about the Logback-user mailing list