[logback-dev] svn commit: r1059 - logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Dec 4 11:08:10 CET 2006


Author: seb
Date: Mon Dec  4 11:08:10 2006
New Revision: 1059

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/jetty/RequestLogImpl.java

Log:
added a started attribute

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	Mon Dec  4 11:08:10 2006
@@ -118,6 +118,7 @@
   AppenderAttachableImpl aai = new AppenderAttachableImpl();
   FilterAttachableImpl fai = new FilterAttachableImpl();
   String filename;
+  boolean started = false;
 
   public RequestLogImpl() {
     putObject(CoreGlobal.EVALUATOR_MAP, new HashMap());
@@ -166,6 +167,8 @@
       getStatusManager().add(
           new InfoStatus("RequestLog added to RequestLogRegistry with name: "
               + getName(), this));
+      
+      started = true;
 
     } catch (JoranException e) {
       // errors have been registered as status messages
@@ -176,10 +179,11 @@
 
   public void stop() {
     aai.detachAndStopAllAppenders();
+    started = false;
   }
 
   public boolean isRunning() {
-    return false;
+    return started;
   }
 
   public void setFileName(String filename) {
@@ -187,7 +191,7 @@
   }
 
   public boolean isStarted() {
-    return true;
+    return started;
   }
 
   public boolean isStarting() {
@@ -199,7 +203,7 @@
   }
   
   public boolean isStopped() {
-    return false;
+    return !started;
   }
 
   public boolean isFailed() {



More information about the logback-dev mailing list