logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405565 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
Date Sun, 04 Nov 2012 15:40:57 GMT
Author: ggregory
Date: Sun Nov  4 15:40:56 2012
New Revision: 1405565

URL: http://svn.apache.org/viewvc?rev=1405565&view=rev
Log:
Avoid problems on the Turkish Locale.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java?rev=1405565&r1=1405564&r2=1405565&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/LoggerConfig.java
Sun Nov  4 15:40:56 2012
@@ -408,7 +408,7 @@ public class LoggerConfig extends Abstra
             List<AppenderRef> appenderRefs = Arrays.asList(refs);
             Level level;
             try {
-                level = loggerLevel == null ? Level.ERROR : Level.valueOf(loggerLevel.toUpperCase());
+                level = loggerLevel == null ? Level.ERROR : Level.valueOf(loggerLevel.toUpperCase(Locale.ENGLISH));
             } catch (Exception ex) {
                 LOGGER.error("Invalid Log level specified: {}. Defaulting to Error", loggerLevel);
                 level = Level.ERROR;



Mime
View raw message