[slf4j-dev] svn commit: r1035 - slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j

ceki at slf4j.org ceki at slf4j.org
Mon Jun 2 21:26:37 CEST 2008


Author: ceki
Date: Mon Jun  2 21:26:36 2008
New Revision: 1035

Modified:
   slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java

Log:
- Trivial implementation of getLevel() method always returning null. 
  See also http://bugzilla.slf4j.org/show_bug.cgi?id=74

Modified: slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java
==============================================================================
--- slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java	(original)
+++ slf4j/trunk/log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java	Mon Jun  2 21:26:36 2008
@@ -104,6 +104,24 @@
     }
     return Level.ERROR;
   }
+
+  /**
+   * Returns the assigned {@link Level}, if any, for this Category.
+   * This implementation always returns null.
+   * 
+   * @return Level - the assigned Level, can be <code>null</code>.
+   */
+  final public Level getLevel() {
+    return null;
+  }
+
+
+  /**
+   * @deprecated Please use {@link #getLevel} instead.
+  */
+  final public Level getPriority() {
+    return null;
+  }
   
   /**
    * Delegates to {@link org.slf4j.Logger#isTraceEnabled} 



More information about the slf4j-dev mailing list