logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1563211 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Date Fri, 31 Jan 2014 18:37:24 GMT
Author: ggregory
Date: Fri Jan 31 18:37:24 2014
New Revision: 1563211

URL: http://svn.apache.org/r1563211
Log:
Better ivar names.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java?rev=1563211&r1=1563210&r2=1563211&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
Fri Jan 31 18:37:24 2014
@@ -43,19 +43,19 @@ public class RollingFileManager extends 
     private long initialTime;
     private final PatternProcessor patternProcessor;
     private final Semaphore semaphore = new Semaphore(1);
-    private final TriggeringPolicy policy;
-    private final RolloverStrategy strategy;
+    private final TriggeringPolicy triggeringPolicy;
+    private final RolloverStrategy rolloverStrategy;
 
     protected RollingFileManager(final String fileName, final String pattern, final OutputStream
os,
-                                 final boolean append, final long size, final long time,
final TriggeringPolicy policy,
-                                 final RolloverStrategy strategy, final String advertiseURI,
final Layout<? extends Serializable> layout) {
+                                 final boolean append, final long size, final long time,
final TriggeringPolicy triggeringPolicy,
+                                 final RolloverStrategy rolloverStrategy, final String advertiseURI,
final Layout<? extends Serializable> layout) {
         super(fileName, os, append, false, advertiseURI, layout);
         this.size = size;
         this.initialTime = time;
-        this.policy = policy;
-        this.strategy = strategy;
+        this.triggeringPolicy = triggeringPolicy;
+        this.rolloverStrategy = rolloverStrategy;
         this.patternProcessor = new PatternProcessor(pattern);
-        policy.initialize(this);
+        triggeringPolicy.initialize(this);
     }
 
     /**
@@ -106,7 +106,7 @@ public class RollingFileManager extends 
      * @param event The LogEvent.
      */
     public synchronized void checkRollover(final LogEvent event) {
-        if (policy.isTriggeringEvent(event) && rollover(strategy)) {
+        if (triggeringPolicy.isTriggeringEvent(event) && rollover(rolloverStrategy))
{
             try {
                 size = 0;
                 initialTime = System.currentTimeMillis();



Mime
View raw message