logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1521331 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
Date Tue, 10 Sep 2013 01:32:50 GMT
Author: ggregory
Date: Tue Sep 10 01:32:50 2013
New Revision: 1521331

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

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

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java?rev=1521331&r1=1521330&r2=1521331&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/Logger.java
Tue Sep 10 01:32:50 2013
@@ -614,6 +614,15 @@ public interface Logger {
   boolean isEnabled(Level level);
 
   /**
+ * Checks whether this logger is enabled at the specified level and an optional Marker.
+ * @param level The Level to check.
+ * @param marker The marker data specific to this log statement.
+ * @return boolean - {@code true} if this Logger is enabled for level
+ *         {@link Level#WARN WARN}, {@code false} otherwise.
+ */
+  boolean isEnabled(Level level, Marker marker);
+
+  /**
    * Checks whether this Logger is enabled for the {@link Level#ERROR ERROR} Level.
    *
    * @return boolean - {@code true} if this Logger is enabled for level
@@ -672,7 +681,7 @@ public interface Logger {
    */
   boolean isTraceEnabled();
 
-  /**
+ /**
    * Checks whether this Logger is enabled for the {@link Level#TRACE TRACE} level.
    *
    * @param marker The marker data specific to this log statement.
@@ -681,31 +690,22 @@ public interface Logger {
    */
   boolean isTraceEnabled(Marker marker);
 
- /**
-   * Checks whether this Logger is enabled for the {@link Level#WARN WARN} Level.
-   *
-   * @return boolean - {@code true} if this Logger is enabled for level
-   *         {@link Level#WARN WARN}, {@code false} otherwise.
-   */
-  boolean isWarnEnabled();
-
   /**
    * Checks whether this Logger is enabled for the {@link Level#WARN WARN} Level.
    *
-   * @param marker The marker data specific to this log statement.
    * @return boolean - {@code true} if this Logger is enabled for level
    *         {@link Level#WARN WARN}, {@code false} otherwise.
    */
-  boolean isWarnEnabled(Marker marker);
+  boolean isWarnEnabled();
 
     /**
-     * Checks whether this logger is enabled at the specified level and an optional Marker.
-     * @param level The Level to check.
-     * @param marker The marker data specific to this log statement.
-     * @return boolean - {@code true} if this Logger is enabled for level
-     *         {@link Level#WARN WARN}, {@code false} otherwise.
-     */
-  boolean isEnabled(Level level, Marker marker);
+	   * Checks whether this Logger is enabled for the {@link Level#WARN WARN} Level.
+	   *
+	   * @param marker The marker data specific to this log statement.
+	   * @return boolean - {@code true} if this Logger is enabled for level
+	   *         {@link Level#WARN WARN}, {@code false} otherwise.
+	   */
+	  boolean isWarnEnabled(Marker marker);
 
   /**
    * Logs a message with the specific Marker at the given level.
@@ -843,19 +843,19 @@ public interface Logger {
   /**
    * Logs a formatted message using the specified format string and arguments.
    * @param level The logging Level.
+   * @param marker the marker data specific to this log statement.
    * @param format The format String.
    * @param params Arguments specified by the format.
    */
-  void printf(Level level, String format, Object... params);
+  void printf(Level level, Marker marker, String format, Object... params);
 
   /**
    * Logs a formatted message using the specified format string and arguments.
    * @param level The logging Level.
-   * @param marker the marker data specific to this log statement.
    * @param format The format String.
    * @param params Arguments specified by the format.
    */
-  void printf(Level level, Marker marker, String format, Object... params);
+  void printf(Level level, String format, Object... params);
 
   /**
    * Logs an exception or error to be thrown. This may be coded as <br />



Mime
View raw message