[logback-user] Using logback in tomcat

Michael Abato nabble at maengden.org
Tue Apr 17 15:38:33 CEST 2007


This change (which is pretty importantant in an "enterprise" style
environment) never got into the code base:

$ svn diff
Index:
logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
===================================================================
---
logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java   
(revision 1509)
+++
logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java   
(working copy)
@@ -103,7 +103,7 @@

   public void start() {
     if (filename == null) {
-      String tomcatHomeProperty = System.getProperty("catalina.home");
+      String tomcatHomeProperty = System.getProperty("catalina.base");

       filename = tomcatHomeProperty + File.separatorChar +
DEFAULT_CONFIG_FILE;

I also can't find the post regarding bootstrapping tomcat with logback
intercepting all logging - did that ever get through? I've been running that
way for some time and have not seen any problems. The resulting control,
consolidation and archiving of logs is fantastic!

- mike

-- 
View this message in context: http://www.nabble.com/Using-logback-in-tomcat-tf2890321.html#a10035474
Sent from the Logback User mailing list archive at Nabble.com.




More information about the Logback-user mailing list