openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r573675 - /openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java
Date Fri, 07 Sep 2007 19:23:30 GMT
Author: pcl
Date: Fri Sep  7 12:23:29 2007
New Revision: 573675

URL: http://svn.apache.org/viewvc?rev=573675&view=rev
Log:
OPENJPA-355: applying log4j mixup fix to 1.0.x branch. svn merge -c 573653 ../../trunk

Modified:
    openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java

Modified: openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java?rev=573675&r1=573674&r2=573675&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java
(original)
+++ openjpa/branches/1.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/log/Log4JLogFactory.java
Fri Sep  7 12:23:29 2007
@@ -49,23 +49,23 @@
         }
 
         public boolean isTraceEnabled() {
-            return _log.getEffectiveLevel().toInt() >= Level.DEBUG_INT;
+            return _log.isEnabledFor(Level.DEBUG);
         }
 
         public boolean isInfoEnabled() {
-            return _log.getEffectiveLevel().toInt() >= Level.INFO_INT;
+            return _log.isEnabledFor(Level.INFO);
         }
 
         public boolean isWarnEnabled() {
-            return _log.getEffectiveLevel().toInt() >= Level.WARN_INT;
+            return _log.isEnabledFor(Level.WARN);
         }
 
         public boolean isErrorEnabled() {
-            return _log.getEffectiveLevel().toInt() >= Level.ERROR_INT;
+            return _log.isEnabledFor(Level.ERROR);
         }
 
         public boolean isFatalEnabled() {
-            return _log.getEffectiveLevel().toInt() >= Level.FATAL_INT;
+            return _log.isEnabledFor(Level.FATAL);
         }
 
         public void trace(Object o) {



Mime
View raw message