You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/09/08 07:29:29 UTC

logging-log4j2 git commit: DefaultRolloverStrategy extends AbstractRolloverStrategy.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 6b80565b5 -> f1049ecc1


DefaultRolloverStrategy extends AbstractRolloverStrategy.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f1049ecc
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f1049ecc
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f1049ecc

Branch: refs/heads/master
Commit: f1049ecc1bab891f923451930a18cc1bfc418195
Parents: 6b80565
Author: Gary Gregory <gg...@apache.org>
Authored: Thu Sep 8 00:29:27 2016 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu Sep 8 00:29:27 2016 -0700

----------------------------------------------------------------------
 .../log4j/core/appender/rolling/DefaultRolloverStrategy.java  | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f1049ecc/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
index 833db41..67e7630 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/DefaultRolloverStrategy.java
@@ -76,7 +76,7 @@ import org.apache.logging.log4j.status.StatusLogger;
  * </p>
  */
 @Plugin(name = "DefaultRolloverStrategy", category = "Core", printObject = true)
-public class DefaultRolloverStrategy implements RolloverStrategy {
+public class DefaultRolloverStrategy extends AbstractRolloverStrategy {
 
     /**
      * Enumerates over supported file extensions.
@@ -171,11 +171,6 @@ public class DefaultRolloverStrategy implements RolloverStrategy {
         }
     }
 
-    /**
-     * Allow subclasses access to the status logger without creating another instance.
-     */
-    protected static final Logger LOGGER = StatusLogger.getLogger();
-
     private static final int MIN_WINDOW_SIZE = 1;
     private static final int DEFAULT_WINDOW_SIZE = 7;