Author: ceki
Date: Tue Feb 26 18:13:22 2008
New Revision: 989

Modified:
   
slf4j/trunk/jcl104-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLocationAwareLog.java

Log:
- doc adjustments. 
- reordering the code

Modified: 
slf4j/trunk/jcl104-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLocationAwareLog.java
==============================================================================
--- 
slf4j/trunk/jcl104-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLocationAwareLog.java
      (original)
+++ 
slf4j/trunk/jcl104-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLocationAwareLog.java
      Tue Feb 26 18:13:22 2008
@@ -10,8 +10,7 @@
  * Implementation of [EMAIL PROTECTED] Log org.apache.commons.logging.Log} 
interface which 
  * delegates all processing to a wrapped [EMAIL PROTECTED] Logger 
org.slf4j.Logger} instance.
  * 
- * <p>JCL's FATAL and TRACE levels are mapped to ERROR and DEBUG respectively. 
All 
- * other levels map one to one.
+ * <p>JCL's FATAL level is mapped to ERROR. All other levels map one to one.
  * 
  * @author Ceki G&uuml;lc&uuml;
  */
@@ -25,48 +24,49 @@
   }
 
   /**
+   * Delegates to the <code>isTraceEnabled<code> method of the wrapped 
+   * <code>org.slf4j.Logger</code> instance.
+   */
+  public boolean isTraceEnabled() {
+    return logger.isTraceEnabled();
+  }
+  
+  /**
    * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
    */
   public boolean isDebugEnabled() {
     return logger.isDebugEnabled();
   }
-
+  
   /**
    * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
    */
-  public boolean isErrorEnabled() {
-    return logger.isErrorEnabled();
+  public boolean isInfoEnabled() {
+    return logger.isInfoEnabled();
   }
 
   /**
-   * Delegates to the <code>isErrorEnabled<code> method of the wrapped 
-   * <code>org.slf4j.Logger</code> instance.
+   * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
    */
-  public boolean isFatalEnabled() {
-    return logger.isErrorEnabled();
+  public boolean isWarnEnabled() {
+    return logger.isWarnEnabled();
   }
-
+  
   /**
    * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
    */
-  public boolean isInfoEnabled() {
-    return logger.isInfoEnabled();
+  public boolean isErrorEnabled() {
+    return logger.isErrorEnabled();
   }
 
   /**
-   * Delegates to the <code>isTraceEnabled<code> method of the wrapped 
+   * Delegates to the <code>isErrorEnabled<code> method of the wrapped 
    * <code>org.slf4j.Logger</code> instance.
    */
-  public boolean isTraceEnabled() {
-    return logger.isTraceEnabled();
+  public boolean isFatalEnabled() {
+    return logger.isErrorEnabled();
   }
 
-  /**
-   * Directly delegates to the wrapped <code>org.slf4j.Logger</code> instance.
-   */
-  public boolean isWarnEnabled() {
-    return logger.isWarnEnabled();
-  }
 
   /**
    * Converts the input parameter to String and then delegates to 
_______________________________________________
dev mailing list
dev@slf4j.org
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to