logging-commits mailing list archives

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

URL: http://svn.apache.org/r1563202
Log:
Give maxIndex and minIndex accessors.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java?rev=1563202&r1=1563201&r2=1563202&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
Fri Jan 31 18:31:20 2014
@@ -155,6 +155,14 @@ public class DefaultRolloverStrategy imp
         this.subst = subst;
     }
 
+    public int getMaxIndex() {
+        return this.maxIndex;
+    }
+
+    public int getMinIndex() {
+        return this.minIndex;
+    }
+
     private int purge(final int lowIndex, final int highIndex, final RollingFileManager manager)
{
         return useMax ? purgeAscending(lowIndex, highIndex, manager) :
             purgeDescending(lowIndex, highIndex, manager);



Mime
View raw message