[logback-user] logback-access usage
Maxime Carpentier
carpentier.max at gmail.com
Mon Feb 14 14:48:57 CET 2011
Hi,
I'm a bit confused about logback-access usage...
I'm using Tomcat 6.0.29 and logback 0.9.26, i've followed instructions
http://logback.qos.ch/access.html to get HTTP logs...however all i got is
just logback status messages
1) Do i need to put a logback-access.xml in my servlet ? (for now it's just
in tomcat/conf/ )
2) How should i configure logback so that my servlet logs will show in the
logback servlet ?
my logback-access.xml :
<configuration>
<!-- always a good activate OnConsoleStatusListener -->
<statusListener
class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%h %l %u %user %date "%r" %s %b</pattern>
</encoder>
</appender>
<appender-ref ref="STDOUT" />
</configuration>
Thanxs,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110214/c1e9a144/attachment.html>
More information about the Logback-user
mailing list