
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

On 14/02/2011 2:48 PM, Maxime Carpentier wrote:
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/ )
You don't need to put logback-access.xml in your web-app, tomcat/conf/ is the correct location.
2) How should i configure logback so that my servlet logs will show in the logback servlet ?
What do you mean exactly by the logback servlet? -- Ceki

Hi Ceki, For me logback-access allows you to see the logs of your application through HTTP...but i may be wrong. Following site instructions, i get logback status messages on : http://host/yourWebapp/lbAccessStatus Now is there an easy way to access the logs of my applications on a similar page ? On Mon, Feb 14, 2011 at 3:01 PM, Ceki Gülcü <ceki@qos.ch> wrote:
On 14/02/2011 2:48 PM, Maxime Carpentier wrote:
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/ )
You don't need to put logback-access.xml in your web-app, tomcat/conf/ is the correct location.
2) How should i configure logback so that my servlet logs will show in
the logback servlet ?
What do you mean exactly by the logback servlet? -- Ceki _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user
participants (2)
-
Ceki Gülcü
-
Maxime Carpentier