logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1506608 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java
Date Wed, 24 Jul 2013 16:06:56 GMT
Author: ggregory
Date: Wed Jul 24 16:06:56 2013
New Revision: 1506608

URL: http://svn.apache.org/r1506608
Log:
Refactor logger name constant.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java?rev=1506608&r1=1506607&r2=1506608&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/EventLogger.java
Wed Jul 24 16:06:56 2013
@@ -25,7 +25,9 @@ import org.apache.logging.log4j.spi.Abst
  */
 public final class EventLogger {
 
-    /**
+    private static final String NAME = "EventLogger";
+
+	/**
      * Define the Event Marker.
      */
     public static final Marker EVENT_MARKER = MarkerManager.getMarker("EVENT");
@@ -35,11 +37,11 @@ public final class EventLogger {
     private static AbstractLoggerWrapper loggerWrapper;
 
     static {
-        final Logger eventLogger = LogManager.getLogger("EventLogger");
+        final Logger eventLogger = LogManager.getLogger(NAME);
         if (!(eventLogger instanceof AbstractLogger)) {
             throw new LoggingException("Logger returned must be based on AbstractLogger");
         }
-        loggerWrapper = new AbstractLoggerWrapper((AbstractLogger) eventLogger, "EventLogger",
null);
+        loggerWrapper = new AbstractLoggerWrapper((AbstractLogger) eventLogger, NAME, null);
     }
 
 



Mime
View raw message