logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1559413 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java
Date Sat, 18 Jan 2014 20:51:22 GMT
Author: ggregory
Date: Sat Jan 18 20:51:21 2014
New Revision: 1559413

URL: http://svn.apache.org/r1559413
Log:
Sort members.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java?rev=1559413&r1=1559412&r2=1559413&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/spi/AbstractLoggerWrapper.java
Sat Jan 18 20:51:21 2014
@@ -27,6 +27,7 @@ import org.apache.logging.log4j.message.
 public class AbstractLoggerWrapper extends AbstractLogger {
 
     private static final long serialVersionUID = 1L;
+    
     /**
      * The wrapped Logger.
      */
@@ -44,16 +45,16 @@ public class AbstractLoggerWrapper exten
     }
 
     /**
-     * Log an event.
-     * @param marker The Marker
-     * @param fqcn   The fully qualified class name of the <b>caller</b>
-     * @param level  The logging level
-     * @param data   The Message.
-     * @param t      A Throwable or null.
+     * Detect if the event would be logged.
+     * @param level The logging Level to check.
+     * @param marker A Marker or null.
+     * @param data The Message.
+     * @param t A Throwable.
+     * @return true if the event would be logged for the Level, Marker, Message and Throwable,
false otherwise.
      */
     @Override
-    public void log(final Marker marker, final String fqcn, final Level level, final Message
data, final Throwable t) {
-        logger.log(marker, fqcn, level, data, t);
+    public boolean isEnabled(final Level level, final Marker marker, final Message data,
final Throwable t) {
+        return logger.isEnabled(level, marker, data, t);
     }
 
     /**
@@ -61,11 +62,12 @@ public class AbstractLoggerWrapper exten
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param data The message.
-     * @return true if the event would be logged for the Level, Marker and data, false otherwise.
+     * @param t A Throwable.
+     * @return true if the event would be logged for the Level, Marker, Object and Throwable,
false otherwise.
      */
     @Override
-    public boolean isEnabled(final Level level, final Marker marker, final String data) {
-        return logger.isEnabled(level, marker, data);
+    public boolean isEnabled(final Level level, final Marker marker, final Object data, final
Throwable t) {
+        return logger.isEnabled(level, marker, data, t);
     }
 
     /**
@@ -73,12 +75,11 @@ public class AbstractLoggerWrapper exten
      * @param level The logging Level to check.
      * @param marker A Marker or null.
      * @param data The message.
-     * @param t A Throwable.
-     * @return true if the event would be logged for the Level, Marker, data and Throwable,
false otherwise.
+     * @return true if the event would be logged for the Level, Marker and data, false otherwise.
      */
     @Override
-    public boolean isEnabled(final Level level, final Marker marker, final String data, final
Throwable t) {
-        return logger.isEnabled(level, marker, data, t);
+    public boolean isEnabled(final Level level, final Marker marker, final String data) {
+        return logger.isEnabled(level, marker, data);
     }
 
     /**
@@ -100,23 +101,23 @@ public class AbstractLoggerWrapper exten
      * @param marker A Marker or null.
      * @param data The message.
      * @param t A Throwable.
-     * @return true if the event would be logged for the Level, Marker, Object and Throwable,
false otherwise.
+     * @return true if the event would be logged for the Level, Marker, data and Throwable,
false otherwise.
      */
     @Override
-    public boolean isEnabled(final Level level, final Marker marker, final Object data, final
Throwable t) {
+    public boolean isEnabled(final Level level, final Marker marker, final String data, final
Throwable t) {
         return logger.isEnabled(level, marker, data, t);
     }
 
     /**
-     * Detect if the event would be logged.
-     * @param level The logging Level to check.
-     * @param marker A Marker or null.
-     * @param data The Message.
-     * @param t A Throwable.
-     * @return true if the event would be logged for the Level, Marker, Message and Throwable,
false otherwise.
+     * Log an event.
+     * @param marker The Marker
+     * @param fqcn   The fully qualified class name of the <b>caller</b>
+     * @param level  The logging level
+     * @param data   The Message.
+     * @param t      A Throwable or null.
      */
     @Override
-    public boolean isEnabled(final Level level, final Marker marker, final Message data,
final Throwable t) {
-        return logger.isEnabled(level, marker, data, t);
+    public void log(final Marker marker, final String fqcn, final Level level, final Message
data, final Throwable t) {
+        logger.log(marker, fqcn, level, data, t);
     }
 }



Mime
View raw message