logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405285 - /logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java
Date Sat, 03 Nov 2012 06:08:47 GMT
Author: ggregory
Date: Sat Nov  3 06:08:47 2012
New Revision: 1405285

URL: http://svn.apache.org/viewvc?rev=1405285&view=rev
Log:
Rename lvar "l" to "levelName".

Modified:
    logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java

Modified: logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java?rev=1405285&r1=1405284&r2=1405285&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java
(original)
+++ logging/log4j/log4j2/trunk/log4j12-api/src/test/java/org/apache/log4j/BasicConfigurationFactory.java
Sat Nov  3 06:08:47 2012
@@ -50,10 +50,9 @@ public class BasicConfigurationFactory e
         private static final String DEFAULT_LEVEL = "org.apache.logging.log4j.level";
 
         public BasicConfiguration() {
-
             LoggerConfig root = getRootLogger();
-            String l = System.getProperty(DEFAULT_LEVEL);
-            Level level = (l != null && Level.valueOf(l) != null) ? Level.valueOf(l)
: Level.DEBUG;
+            String levelName = System.getProperty(DEFAULT_LEVEL);
+            Level level = (levelName != null && Level.valueOf(levelName) != null)
? Level.valueOf(levelName) : Level.DEBUG;
             root.setLevel(level);
         }
     }



Mime
View raw message