logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1412759 - in /logging/log4j/log4j2/trunk: api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java src/changes/changes.xml
Date Fri, 23 Nov 2012 05:43:33 GMT
Author: rgoers
Date: Fri Nov 23 05:43:32 2012
New Revision: 1412759

URL: http://svn.apache.org/viewvc?rev=1412759&view=rev
Log:
LOG4J2-127 - AbstractLogger methods were not passing Markers to the isEnabled methods.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
    logging/log4j/log4j2/trunk/src/changes/changes.xml

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java?rev=1412759&r1=1412758&r2=1412759&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
Fri Nov 23 05:43:32 2012
@@ -33,7 +33,7 @@ public abstract class AbstractLogger imp
 
     private static final String THROWING = "throwing";
     private static final String CATCHING = "catching";
-    
+
     /**
      * Marker for flow tracing.
      */
@@ -62,7 +62,7 @@ public abstract class AbstractLogger imp
     private static final String FQCN = AbstractLogger.class.getName();
 
     private final String name;
-    
+
     /**
      * Creates a new logger named after the class (or subclass).
      */
@@ -72,13 +72,13 @@ public abstract class AbstractLogger imp
 
     /**
      * Creates a new named logger.
-     * 
+     *
      * @param name the logger name
      */
     public AbstractLogger(String name) {
         this.name = name;
     }
-    
+
     /**
      * Logs entry to a method.
      */
@@ -762,7 +762,7 @@ public abstract class AbstractLogger imp
      * @param msg    the message string to be logged
      */
     public void info(Marker marker, Message msg) {
-        if (isEnabled(Level.INFO, null, msg, null)) {
+        if (isEnabled(Level.INFO, marker, msg, null)) {
             log(marker, FQCN, Level.INFO, msg, null);
         }
     }
@@ -959,7 +959,7 @@ public abstract class AbstractLogger imp
      * @param msg    the message string to be logged
      */
     public void warn(Marker marker, Message msg) {
-        if (isEnabled(Level.WARN, null, msg, null)) {
+        if (isEnabled(Level.WARN, marker, msg, null)) {
             log(marker, FQCN, Level.WARN, msg, null);
         }
     }
@@ -1156,7 +1156,7 @@ public abstract class AbstractLogger imp
      * @param msg    the message string to be logged
      */
     public void error(Marker marker, Message msg) {
-        if (isEnabled(Level.ERROR, null, msg, null)) {
+        if (isEnabled(Level.ERROR, marker, msg, null)) {
             log(null, FQCN, Level.ERROR, msg, null);
         }
     }
@@ -1353,7 +1353,7 @@ public abstract class AbstractLogger imp
      * @param msg    the message string to be logged
      */
     public void fatal(Marker marker, Message msg) {
-        if (isEnabled(Level.FATAL, null, msg, null)) {
+        if (isEnabled(Level.FATAL, marker, msg, null)) {
             log(null, FQCN, Level.FATAL, msg, null);
         }
     }
@@ -1482,7 +1482,7 @@ public abstract class AbstractLogger imp
     public String getName() {
         return name;
     }
-    
+
     /**
      * Returns a String representation of this instance in the form {@code "name"}.
      * @return A String describing this Logger instance.

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1412759&r1=1412758&r2=1412759&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Fri Nov 23 05:43:32 2012
@@ -23,6 +23,9 @@
 
   <body>
     <release version="2.0-beta4" date="TBD" description="Bug fixes and enhancements">
+      <action issue="LOG4J2-127" dev="rgoers" type="fix">
+        AbstractLogger methods were not passing Markers to the isEnabled methods.
+      </action>
       <action dev="rgoers" type="add">
         Added Flume Appender samples.
       </action>



Mime
View raw message