[logback-dev] svn commit: r2379 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Jul 30 14:38:23 CEST 2009


Author: ceki
Date: Thu Jul 30 14:38:23 2009
New Revision: 2379

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java

Log:
- minor change in the order of code invocation 

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/TimeBasedRollingPolicy.java	Thu Jul 30 14:38:23 2009
@@ -52,9 +52,6 @@
     // set the LR for our utility object
     renameUtil.setContext(this.context);
 
-    timeBasedTriggering.setContext(context);
-    timeBasedTriggering.setTimeBasedRollingPolicy(this);
-    
     // find out period from the filename pattern
     if (fileNamePatternStr != null) {
       fileNamePattern = new FileNamePattern(fileNamePatternStr, this.context);
@@ -75,6 +72,8 @@
     addInfo("Will use the pattern " + fileNamePatternWCS
         + " for the active file");
 
+    timeBasedTriggering.setContext(context);
+    timeBasedTriggering.setTimeBasedRollingPolicy(this);
     timeBasedTriggering.start();
 
     if (maxHistory != NO_DELETE_HISTORY) {


More information about the logback-dev mailing list