logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1522387 - in /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core: Appender.java appender/AbstractAppender.java
Date Thu, 12 Sep 2013 04:45:45 GMT
Author: ggregory
Date: Thu Sep 12 04:45:44 2013
New Revision: 1522387

URL: http://svn.apache.org/r1522387
Log:
Pull LOGGER svar up one level to the top of the hierarchy.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Appender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Appender.java?rev=1522387&r1=1522386&r2=1522387&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Appender.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/Appender.java
Thu Sep 12 04:45:44 2013
@@ -18,12 +18,20 @@ package org.apache.logging.log4j.core;
 
 import java.io.Serializable;
 
+import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.status.StatusLogger;
+
 /**
  * Appends log events.
  */
 public interface Appender extends LifeCycle {
 
     /**
+     * Allow subclasses access to the status logger without creating another instance.
+     */
+    public static final Logger LOGGER = StatusLogger.getLogger();
+
+    /**
      * Log in <code>Appender</code> specific way. When appropriate,
      * Loggers will call the <code>doAppend</code> method of appender
      * implementations in order to log.

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java?rev=1522387&r1=1522386&r2=1522387&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractAppender.java
Thu Sep 12 04:45:44 2013
@@ -18,7 +18,6 @@ package org.apache.logging.log4j.core.ap
 
 import java.io.Serializable;
 
-import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.Appender;
 import org.apache.logging.log4j.core.ErrorHandler;
 import org.apache.logging.log4j.core.Filter;
@@ -26,7 +25,6 @@ import org.apache.logging.log4j.core.Lay
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.filter.AbstractFilterable;
 import org.apache.logging.log4j.core.helpers.Integers;
-import org.apache.logging.log4j.status.StatusLogger;
 
 /**
  * Abstract base class for Appenders. Although Appenders do not have to extend this class,
doing so
@@ -34,11 +32,6 @@ import org.apache.logging.log4j.status.S
  */
 public abstract class AbstractAppender extends AbstractFilterable
     implements Appender {
-    /**
-     * Allow subclasses access to the status logger without creating another instance.
-     */
-    protected static final Logger LOGGER = StatusLogger.getLogger();
-
     private final boolean ignoreExceptions;
 
     private ErrorHandler handler = new DefaultErrorHandler(this);



Mime
View raw message