logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1516476 - /logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
Date Thu, 22 Aug 2013 14:57:50 GMT
Author: ggregory
Date: Thu Aug 22 14:57:49 2013
New Revision: 1516476

URL: http://svn.apache.org/r1516476
Log:
Consistently use "LOGGER" for the StatusLogger when used as a static final.

Modified:
    logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java

Modified: logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java?rev=1516476&r1=1516475&r2=1516476&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
(original)
+++ logging/log4j/log4j2/trunk/taglib/src/main/java/org/apache/logging/log4j/taglib/TagUtils.java
Thu Aug 22 14:57:49 2013
@@ -35,7 +35,7 @@ import org.apache.logging.log4j.status.S
  * @since 2.0
  */
 final class TagUtils {
-    private static final StatusLogger log = StatusLogger.getLogger();
+    private static final StatusLogger LOGGER = StatusLogger.getLogger();
 
     private static final Set<Object> WARNED_FOR = new HashSet<Object>();
 
@@ -75,8 +75,8 @@ final class TagUtils {
                 return (Log4jTaglibLogger) logger;
             }
             if (logger instanceof AbstractLogger) {
-                if (log.isInfoEnabled() && !WARNED_FOR.contains(logger)) {
-                    log.info("Constructing new Log4jTaglibLogger from AbstractLogger {} name
and message factory.",
+                if (LOGGER.isInfoEnabled() && !WARNED_FOR.contains(logger)) {
+                    LOGGER.info("Constructing new Log4jTaglibLogger from AbstractLogger {}
name and message factory.",
                             logger.getClass().getName());
                     WARNED_FOR.add(logger);
                 }



Mime
View raw message