[logback-dev] svn commit: r623 - in logback/trunk/logback-access/src/main/java/ch/qos/logback/access: jetty tomcat
noreply.seb at qos.ch
noreply.seb at qos.ch
Thu Oct 5 10:04:26 CEST 2006
Author: seb
Date: Thu Oct 5 10:04:26 2006
New Revision: 623
Modified:
logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java
logback/trunk/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
Log:
StatusPrinter.print is pretty useful, actually...
Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java (original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java Thu Oct 5 10:04:26 2006
@@ -14,6 +14,7 @@
import ch.qos.logback.core.spi.AppenderAttachable;
import ch.qos.logback.core.spi.AppenderAttachableImpl;
import ch.qos.logback.core.status.ErrorStatus;
+import ch.qos.logback.core.util.StatusPrinter;
/**
* This class is logback's implementation of jetty's RequestLog interface.
@@ -107,7 +108,7 @@
JoranConfigurator jc = new JoranConfigurator();
jc.setContext(this);
jc.doConfigure(filename);
- //StatusPrinter.print(getStatusManager());
+ StatusPrinter.print(getStatusManager());
} else {
getStatusManager().add(
new ErrorStatus("[" + filename + "] does not exist", this));
Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java (original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java Thu Oct 5 10:04:26 2006
@@ -23,6 +23,7 @@
import ch.qos.logback.core.spi.FilterAttachableImpl;
import ch.qos.logback.core.status.ErrorStatus;
import ch.qos.logback.core.status.StatusManager;
+import ch.qos.logback.core.util.StatusPrinter;
/**
* This class is an implementation of tomcat's Valve interface, by extending
@@ -112,7 +113,7 @@
JoranConfigurator jc = new JoranConfigurator();
jc.setContext(this);
jc.doConfigure(filename);
- // StatusPrinter.print(getStatusManager());
+ StatusPrinter.print(getStatusManager());
} else {
getStatusManager().add(
new ErrorStatus("[" + filename + "] does not exist", this));
More information about the logback-dev
mailing list