commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1362982 - /commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java
Date Wed, 18 Jul 2012 15:34:46 GMT
Author: sebb
Date: Wed Jul 18 15:34:45 2012
New Revision: 1362982

URL: http://svn.apache.org/viewvc?rev=1362982&view=rev
Log:
Replace deprecated field references

Modified:
    commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java

Modified: commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java
URL: http://svn.apache.org/viewvc/commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java?rev=1362982&r1=1362981&r2=1362982&view=diff
==============================================================================
--- commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java
(original)
+++ commons/proper/logging/trunk/src/java/org/apache/commons/logging/impl/Log4JLogger.java
Wed Jul 18 15:34:45 2012
@@ -90,7 +90,7 @@ public class Log4JLogger implements Log,
             traceLevel = (Priority) Level.class.getDeclaredField("TRACE").get(null);
         } catch(Exception ex) {
             // ok, trace not available
-            traceLevel = Priority.DEBUG;
+            traceLevel = Level.DEBUG;
         }
     }
 
@@ -174,7 +174,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#debug(Object)
      */
     public void debug(Object message) {
-        getLogger().log(FQCN, Priority.DEBUG, message, null );
+        getLogger().log(FQCN, Level.DEBUG, message, null );
     }
 
     /**
@@ -185,7 +185,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#debug(Object, Throwable)
      */
     public void debug(Object message, Throwable t) {
-        getLogger().log(FQCN, Priority.DEBUG, message, t );
+        getLogger().log(FQCN, Level.DEBUG, message, t );
     }
 
 
@@ -196,7 +196,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#info(Object)
      */
     public void info(Object message) {
-        getLogger().log(FQCN, Priority.INFO, message, null );
+        getLogger().log(FQCN, Level.INFO, message, null );
     }
 
 
@@ -208,7 +208,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#info(Object, Throwable)
      */
     public void info(Object message, Throwable t) {
-        getLogger().log(FQCN, Priority.INFO, message, t );
+        getLogger().log(FQCN, Level.INFO, message, t );
     }
 
 
@@ -219,7 +219,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#warn(Object)
      */
     public void warn(Object message) {
-        getLogger().log(FQCN, Priority.WARN, message, null );
+        getLogger().log(FQCN, Level.WARN, message, null );
     }
 
 
@@ -231,7 +231,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#warn(Object, Throwable)
      */
     public void warn(Object message, Throwable t) {
-        getLogger().log(FQCN, Priority.WARN, message, t );
+        getLogger().log(FQCN, Level.WARN, message, t );
     }
 
 
@@ -242,7 +242,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#error(Object)
      */
     public void error(Object message) {
-        getLogger().log(FQCN, Priority.ERROR, message, null );
+        getLogger().log(FQCN, Level.ERROR, message, null );
     }
 
 
@@ -254,7 +254,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#error(Object, Throwable)
      */
     public void error(Object message, Throwable t) {
-        getLogger().log(FQCN, Priority.ERROR, message, t );
+        getLogger().log(FQCN, Level.ERROR, message, t );
     }
 
 
@@ -265,7 +265,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#fatal(Object)
      */
     public void fatal(Object message) {
-        getLogger().log(FQCN, Priority.FATAL, message, null );
+        getLogger().log(FQCN, Level.FATAL, message, null );
     }
 
 
@@ -277,7 +277,7 @@ public class Log4JLogger implements Log,
      * @see org.apache.commons.logging.Log#fatal(Object, Throwable)
      */
     public void fatal(Object message, Throwable t) {
-        getLogger().log(FQCN, Priority.FATAL, message, t );
+        getLogger().log(FQCN, Level.FATAL, message, t );
     }
 
 
@@ -304,7 +304,7 @@ public class Log4JLogger implements Log,
      * Check whether the Log4j Logger used is enabled for <code>ERROR</code>
priority.
      */
     public boolean isErrorEnabled() {
-        return getLogger().isEnabledFor(Priority.ERROR);
+        return getLogger().isEnabledFor(Level.ERROR);
     }
 
 
@@ -312,7 +312,7 @@ public class Log4JLogger implements Log,
      * Check whether the Log4j Logger used is enabled for <code>FATAL</code>
priority.
      */
     public boolean isFatalEnabled() {
-        return getLogger().isEnabledFor(Priority.FATAL);
+        return getLogger().isEnabledFor(Level.FATAL);
     }
 
 
@@ -337,6 +337,6 @@ public class Log4JLogger implements Log,
      * Check whether the Log4j Logger used is enabled for <code>WARN</code> priority.
      */
     public boolean isWarnEnabled() {
-        return getLogger().isEnabledFor(Priority.WARN);
+        return getLogger().isEnabledFor(Level.WARN);
     }
 }



Mime
View raw message