[slf4j-user] slf4j logger -> Servlet container log : How to?

Thorbjoern Ravn Andersen ravn at runjva.com
Tue May 11 18:21:40 CEST 2010


Den 11/05/10 18.00, Jacob Kjome skrev:
> It's possible via Log4j.  See...
> http://svn.apache.org/repos/asf/logging/sandbox/log4j/log4j_sandbox/tags/LOG4J_SANDBOX_ALPHA3/src/java/org/apache/log4j/servlet/ 
>
>
> specifically...
>
> ServletContextLogAppender.java
> ServletContextLogAppenderListener.java
>
Interesting, with an interesting approach.  I could not immediately see 
from the source where 
ServletContextLogAppender.setServletContextPath(...) is set, as it 
appears to be quite important for this mechanism to work.  Is it to be 
set in log4j.xml, or did I miss something?

-- 
   Thorbjørn Ravn Andersen  "...plus... Tubular Bells!"



More information about the slf4j-user mailing list