commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1616048 - /commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java
Date Tue, 05 Aug 2014 23:34:19 GMT
Author: sebb
Date: Tue Aug  5 23:34:18 2014
New Revision: 1616048

URL: http://svn.apache.org/r1616048
Log:
Use Level.XXXX rather than deprecated Priority.XXXX

Modified:
    commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java

Modified: commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java?rev=1616048&r1=1616047&r2=1616048&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java
(original)
+++ commons/proper/configuration/trunk/src/test/java/org/apache/commons/configuration/Logging.java
Tue Aug  5 23:34:18 2014
@@ -38,7 +38,7 @@ public class Logging extends Log4JLogger
      */
     private static final String FQCN = Logging.class.getName();
 
-    private static Priority traceLevel;
+    private static Priority traceLevel; // TODO should this be Level?
 
     static
     {
@@ -53,7 +53,7 @@ public class Logging extends Log4JLogger
         catch (Exception ex)
         {
             // ok, trace not available
-            traceLevel = Priority.DEBUG;
+            traceLevel = Level.DEBUG;
         }
 
         String level = System.getProperty("LogLevel");
@@ -146,7 +146,7 @@ public class Logging extends Log4JLogger
     @Override
     public void debug(Object message)
     {
-        getLogger().log(FQCN, Priority.DEBUG, message, null);
+        getLogger().log(FQCN, Level.DEBUG, message, null);
     }
 
     /**
@@ -159,7 +159,7 @@ public class Logging extends Log4JLogger
     @Override
     public void debug(Object message, Throwable t)
     {
-        getLogger().log(FQCN, Priority.DEBUG, message, t);
+        getLogger().log(FQCN, Level.DEBUG, message, t);
     }
 
 
@@ -172,7 +172,7 @@ public class Logging extends Log4JLogger
     @Override
     public void info(Object message)
     {
-        getLogger().log(FQCN, Priority.INFO, message, null);
+        getLogger().log(FQCN, Level.INFO, message, null);
     }
 
 
@@ -186,7 +186,7 @@ public class Logging extends Log4JLogger
     @Override
     public void info(Object message, Throwable t)
     {
-        getLogger().log(FQCN, Priority.INFO, message, t);
+        getLogger().log(FQCN, Level.INFO, message, t);
     }
 
 
@@ -199,7 +199,7 @@ public class Logging extends Log4JLogger
     @Override
     public void warn(Object message)
     {
-        getLogger().log(FQCN, Priority.WARN, message, null);
+        getLogger().log(FQCN, Level.WARN, message, null);
     }
 
 
@@ -213,7 +213,7 @@ public class Logging extends Log4JLogger
     @Override
     public void warn(Object message, Throwable t)
     {
-        getLogger().log(FQCN, Priority.WARN, message, t);
+        getLogger().log(FQCN, Level.WARN, message, t);
     }
 
 
@@ -226,7 +226,7 @@ public class Logging extends Log4JLogger
     @Override
     public void error(Object message)
     {
-        getLogger().log(FQCN, Priority.ERROR, message, null);
+        getLogger().log(FQCN, Level.ERROR, message, null);
     }
 
 
@@ -240,7 +240,7 @@ public class Logging extends Log4JLogger
     @Override
     public void error(Object message, Throwable t)
     {
-        getLogger().log(FQCN, Priority.ERROR, message, t);
+        getLogger().log(FQCN, Level.ERROR, message, t);
     }
 
 
@@ -253,7 +253,7 @@ public class Logging extends Log4JLogger
     @Override
     public void fatal(Object message)
     {
-        getLogger().log(FQCN, Priority.FATAL, message, null);
+        getLogger().log(FQCN, Level.FATAL, message, null);
     }
 
 
@@ -267,7 +267,7 @@ public class Logging extends Log4JLogger
     @Override
     public void fatal(Object message, Throwable t)
     {
-        getLogger().log(FQCN, Priority.FATAL, message, t);
+        getLogger().log(FQCN, Level.FATAL, message, t);
     }
 
 }



Mime
View raw message