Hello Ceki,<br><br>I followed your guidelines, and it works!<br>But I found out that my question was misleading. Your solution works if you start Tomcat the normal way (startup.bat)<br>But this solution does not seem to work when I start or debug, Tomcat from Eclipse-JEE (Ganymede).<br>
<br>I tried to update the server.xml in the \workspace\.metadata\..\tmp0\conf directory, but then I get ClassNotFound exceptions !?<br><br>Is there another way?<br><br>gr Robin<br><br><br><div class="gmail_quote">On Tue, Dec 9, 2008 at 11:41 AM, Ceki Gulcu <span dir="ltr"><ceki@qos.ch></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hello Robin,<br>
<br>
Place logback-access-0.9.13.jar and logback-core-0.9.13.jar under<br>
$TOMCAT6_HOME/lib/ folder. Place logback-access.xml configuration file under<br>
$TOMCAT6_HOME/conf. A simple config file you can use is:<br>
<br>
<configuration><br>
<appender name="STDOUT"<br>
class="ch.qos.logback.core.ConsoleAppender"><br>
<layout<br>
class="ch.qos.logback.access.PatternLayout"><br>
<Pattern>%h %l %u %user %date "%r" %s %b</Pattern><br>
</layout><br>
</appender><br>
<br>
<appender-ref ref="STDOUT" /><br>
</configuration><br>
<br>
In $TOMCAT6_HOME/conf/server.xml, declare LogbackValve under Engine, as in<br>
<br>
<Engine name="Catalina" defaultHost="localhost"><br>
<Valve className="ch.qos.logback.access.tomcat.LogbackValve"/><br>
...<br>
<br>
Please let us know if it works or if it does not.<br>
<div class="Ih2E3d"><br>
robin bakkerus wrote:<br>
> Hi there,<br>
><br>
> Is there a description somewhere how to configure SL4J + Logback in a<br>
> Tomcat 6 (6.0.18) environment.<br>
> I followed the steps for Tomcat5 but nothing works!<br>
><br>
> thanks in advance<br>
><br>
<br>
--<br>
</div>Ceki Gülcü<br>
Logback: The reliable, generic, fast and flexible logging framework for Java.<br>
<a href="http://logback.qos.ch" target="_blank">http://logback.qos.ch</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
Logback-user@qos.ch<br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Robin Bakkerus<br><a href="mailto:robin.bakkerus@gmail.com">robin.bakkerus@gmail.com</a><br>