logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1522378 - in /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern: AbstractPatternConverter.java LogEventPatternConverter.java
Date Thu, 12 Sep 2013 04:42:17 GMT
Author: ggregory
Date: Thu Sep 12 04:42:16 2013
New Revision: 1522378

URL: http://svn.apache.org/r1522378
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/pattern/AbstractPatternConverter.java
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/LogEventPatternConverter.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractPatternConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractPatternConverter.java?rev=1522378&r1=1522377&r2=1522378&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractPatternConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/AbstractPatternConverter.java
Thu Sep 12 04:42:16 2013
@@ -16,6 +16,9 @@
  */
 package org.apache.logging.log4j.core.pattern;
 
+import org.apache.logging.log4j.Logger;
+import org.apache.logging.log4j.status.StatusLogger;
+
 
 /**
  * <p>AbstractPatternConverter is an abstract class that provides the
@@ -27,6 +30,11 @@ package org.apache.logging.log4j.core.pa
  */
 public abstract class AbstractPatternConverter implements PatternConverter {
     /**
+     * Allow subclasses access to the status logger.
+     */
+    protected static final Logger LOGGER = StatusLogger.getLogger();
+
+    /**
      * Converter name.
      */
     private final String name;

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/LogEventPatternConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/LogEventPatternConverter.java?rev=1522378&r1=1522377&r2=1522378&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/LogEventPatternConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/LogEventPatternConverter.java
Thu Sep 12 04:42:16 2013
@@ -16,9 +16,7 @@
  */
 package org.apache.logging.log4j.core.pattern;
 
-import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.LogEvent;
-import org.apache.logging.log4j.status.StatusLogger;
 
 /**
  * LoggingEventPatternConverter is a base class for pattern converters
@@ -27,11 +25,6 @@ import org.apache.logging.log4j.status.S
 public abstract class LogEventPatternConverter extends AbstractPatternConverter {
 
     /**
-     * Allow subclasses access to the status logger.
-     */
-    protected static final Logger LOGGER = StatusLogger.getLogger();
-
-    /**
      * Constructs an instance of LoggingEventPatternConverter.
      *
      * @param name  name of converter.



Mime
View raw message