Hello Ceki,
I followed your guidelines, and it works!
But I found out that my question was misleading. Your solution works if you start Tomcat the normal way (startup.bat)
But this solution does not seem to work when I start or debug, Tomcat from Eclipse-JEE (Ganymede).
I tried to update the server.xml in the \workspace\.metadata\..\tmp0\conf directory, but then I get ClassNotFound exceptions !?
Is there another way?
gr Robin
Hello Robin,
Place logback-access-0.9.13.jar and logback-core-0.9.13.jar under
$TOMCAT6_HOME/lib/ folder. Place logback-access.xml configuration file under
$TOMCAT6_HOME/conf. A simple config file you can use is:
<configuration>
<appender name="STDOUT"
class="ch.qos.logback.core.ConsoleAppender">
<layout
class="ch.qos.logback.access.PatternLayout">
<Pattern>%h %l %u %user %date "%r" %s %b</Pattern>
</layout>
</appender>
<appender-ref ref="STDOUT" />
</configuration>
In $TOMCAT6_HOME/conf/server.xml, declare LogbackValve under Engine, as in
<Engine name="Catalina" defaultHost="localhost">
<Valve className="ch.qos.logback.access.tomcat.LogbackValve"/>
...
Please let us know if it works or if it does not.
Ceki Gülcü
robin bakkerus wrote:
> Hi there,
>
> Is there a description somewhere how to configure SL4J + Logback in a
> Tomcat 6 (6.0.18) environment.
> I followed the steps for Tomcat5 but nothing works!
>
> thanks in advance
>
--
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch
_______________________________________________
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user