tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject RE: Tomcat Logging.. whats the best way ?
Date Tue, 22 Jun 2004 17:26:37 GMT
Quoting Benson Margulies <bim2004@basistech.com>:

> Sure, but the other question is this:
> 
> ServletContext.log allows a webapp to log. Wouldn't It Be Nice if that
> same log was somehow available to any old bit-o-java when running in the
> environment?
> 

So, you want all logging to go to the servlet context log file for the
application?  So use the ServletContextLogAppender from the logging-log4j-sandbox...
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/log4j/servlet/ServletContextLogAppender.java

See also:
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerLogging


Jake

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message