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">&lt;ceki@qos.ch&gt;</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>
&lt;configuration&gt;<br>
 &nbsp; &lt;appender name=&quot;STDOUT&quot;<br>
 &nbsp; &nbsp; class=&quot;ch.qos.logback.core.ConsoleAppender&quot;&gt;<br>
 &nbsp; &nbsp; &lt;layout<br>
 &nbsp; &nbsp; &nbsp; class=&quot;ch.qos.logback.access.PatternLayout&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &lt;Pattern&gt;%h %l %u %user %date &quot;%r&quot; %s %b&lt;/Pattern&gt;<br>
 &nbsp; &nbsp; &lt;/layout&gt;<br>
 &nbsp; &lt;/appender&gt;<br>
<br>
 &nbsp; &lt;appender-ref ref=&quot;STDOUT&quot; /&gt;<br>
&lt;/configuration&gt;<br>
<br>
In $TOMCAT6_HOME/conf/server.xml, declare LogbackValve under Engine, as in<br>
<br>
 &nbsp;&lt;Engine name=&quot;Catalina&quot; defaultHost=&quot;localhost&quot;&gt;<br>
 &nbsp; &nbsp;&lt;Valve className=&quot;ch.qos.logback.access.tomcat.LogbackValve&quot;/&gt;<br>
 &nbsp; &nbsp;...<br>
<br>
Please let us know if it works or if it does not.<br>
<div class="Ih2E3d"><br>
robin bakkerus wrote:<br>
&gt; Hi there,<br>
&gt;<br>
&gt; Is there a description somewhere how to configure SL4J + Logback in a<br>
&gt; Tomcat 6 (6.0.18) environment.<br>
&gt; I followed the steps for Tomcat5 but nothing works!<br>
&gt;<br>
&gt; thanks in advance<br>
&gt;<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>