[logback-dev] svn commit: r1524 - logback/trunk/log4j-bridge/src/main/java/org/apache/log4j

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu May 3 21:36:28 CEST 2007


Author: ceki
Date: Thu May  3 21:36:27 2007
New Revision: 1524

Modified:
   logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/Category.java

Log:

Fix for bug report 63.

Users can make call to log4j using log4j's TRACE level. TRACE is part 
of org.apache.log4j.Level and not o.a.l.Priority as it was introduced in
log4j 1.2.12.

See also http://bugzilla.qos.ch/show_bug.cgi?id=63

Modified: logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/Category.java
==============================================================================
--- logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/Category.java	(original)
+++ logback/trunk/log4j-bridge/src/main/java/org/apache/log4j/Category.java	Thu May  3 21:36:27 2007
@@ -335,6 +335,8 @@
   
   private ch.qos.logback.classic.Level priorityToLevel(Priority p) {
     switch (p.level) {
+    case Level.TRACE_INT:
+      return ch.qos.logback.classic.Level.TRACE;
     case Priority.DEBUG_INT:
       return ch.qos.logback.classic.Level.DEBUG;
     case Priority.INFO_INT:



More information about the logback-dev mailing list