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

noreply.ceki at qos.ch noreply.ceki at qos.ch
Wed Jul 8 13:52:46 CEST 2009


Author: ceki
Date: Wed Jul  8 13:52:45 2009
New Revision: 2326

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

Log:
- rename a field

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/rolling/RollingFileAppender.java	Wed Jul  8 13:52:45 2009
@@ -27,7 +27,7 @@
  * @author Ceki Gülcü
  */
 public class RollingFileAppender<E> extends FileAppender<E> {
-  File activeFileCache;
+  File activeFile;
   TriggeringPolicy<E> triggeringPolicy;
   RollingPolicy rollingPolicy;
 
@@ -64,7 +64,7 @@
       }
     }
 
-    activeFileCache = new File(getFile());
+    activeFile = new File(getFile());
     addInfo("Active log file name: " + getFile());
     super.start();
   }
@@ -108,11 +108,6 @@
     // does not work for open files.
     this.closeWriter();
 
-    // By default, the newly created file will be created in truncate mode.
-    // (See the setFile() call a few lines below.)
-    // FIXME don't change the append mode
-    // this.append = false;
-    
     try {
       rollingPolicy.rollover();
     } catch (RolloverFailure rf) {
@@ -136,7 +131,7 @@
   protected void subAppend(E event) {
     // The roll-over check must precede actual writing. This is the
     // only correct behavior for time driven triggers.
-    if (triggeringPolicy.isTriggeringEvent(activeFileCache, event)) {
+    if (triggeringPolicy.isTriggeringEvent(activeFile, event)) {
       rollover();
     }
 


More information about the logback-dev mailing list