logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1400941 - in /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j: Logger.java spi/AbstractLogger.java
Date Mon, 22 Oct 2012 16:27:51 GMT
Author: ggregory
Date: Mon Oct 22 16:27:51 2012
New Revision: 1400941

URL: http://svn.apache.org/viewvc?rev=1400941&view=rev
Log:
Javadoc Logger.isEnabled(Level).

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

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java?rev=1400941&r1=1400940&r2=1400941&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java (original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/Logger.java Mon
Oct 22 16:27:51 2012
@@ -589,9 +589,10 @@ public interface Logger {
 
   /**
    * Checks whether this Logger is enabled for the the given Level.
-   * 
-   * @param level
-   *            the level to check
+   * <p>
+   * Note that passing in {@link Level#OFF OFF} always returns {@code true}.
+   * </p>
+   * @param level the level to check
    * @return boolean - <code>true</code> if this Logger is enabled for level,
<code>false</code> otherwise.
    */
   boolean isEnabled(Level level);

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=1400941&r1=1400940&r2=1400941&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
Mon Oct 22 16:27:51 2012
@@ -1429,9 +1429,10 @@ public abstract class AbstractLogger imp
 
     /**
      * Checks whether this Logger is enabled for the the given Level.
-     * 
-     * @param level
-     *            the level to check
+     * <p>
+     * Note that passing in {@link Level#OFF OFF} always returns {@code true}.
+     * </p>
+     * @param level the level to check
      * @return boolean - <code>true</code> if this Logger is enabled for level,
<code>false</code> otherwise.
      */
     public boolean isEnabled(Level level) {



Mime
View raw message