logging-commits mailing list archives

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

URL: http://svn.apache.org/r1563212
Log:
Add accessors for triggeringPolicy and rolloverStrategy.

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=1563212&r1=1563211&r2=1563212&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:39:35 2014
@@ -130,6 +130,22 @@ public class RollingFileManager extends 
         return patternProcessor;
     }
 
+    /**
+     * Returns the triggering policy
+     * @return The TriggeringPolicy
+     */
+    public TriggeringPolicy getTriggeringPolicy() {
+        return this.triggeringPolicy;
+    }
+
+    /**
+     * Returns the rollover strategy
+     * @return The RolloverStrategy
+     */
+    public RolloverStrategy getRolloverStrategy() {
+        return this.rolloverStrategy;
+    }
+
     private boolean rollover(final RolloverStrategy strategy) {
 
         try {



Mime
View raw message