logging-commits mailing list archives

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

URL: http://svn.apache.org/r1506607
Log:
Better names.

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=1506607&r1=1506606&r2=1506607&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:05 2013
@@ -32,14 +32,14 @@ public final class EventLogger {
 
     private static final String FQCN = EventLogger.class.getName();
 
-    private static AbstractLoggerWrapper logger;
+    private static AbstractLoggerWrapper loggerWrapper;
 
     static {
-        final Logger l = LogManager.getLogger("EventLogger");
-        if (!(l instanceof AbstractLogger)) {
+        final Logger eventLogger = LogManager.getLogger("EventLogger");
+        if (!(eventLogger instanceof AbstractLogger)) {
             throw new LoggingException("Logger returned must be based on AbstractLogger");
         }
-        logger = new AbstractLoggerWrapper((AbstractLogger) l, "EventLogger", null);
+        loggerWrapper = new AbstractLoggerWrapper((AbstractLogger) eventLogger, "EventLogger",
null);
     }
 
 
@@ -51,7 +51,7 @@ public final class EventLogger {
      * @param msg The event StructuredDataMessage.
      */
     public static void logEvent(final StructuredDataMessage msg) {
-        logger.log(EVENT_MARKER, FQCN, Level.OFF, msg, null);
+        loggerWrapper.log(EVENT_MARKER, FQCN, Level.OFF, msg, null);
     }
 
     /**
@@ -60,6 +60,6 @@ public final class EventLogger {
      * @param level The logging Level.
      */
     public static void logEvent(final StructuredDataMessage msg, final Level level) {
-        logger.log(EVENT_MARKER, FQCN, level, msg, null);
+        loggerWrapper.log(EVENT_MARKER, FQCN, level, msg, null);
     }
 }



Mime
View raw message