logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405559 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java
Date Sun, 04 Nov 2012 15:36:43 GMT
Author: ggregory
Date: Sun Nov  4 15:36:42 2012
New Revision: 1405559

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

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java?rev=1405559&r1=1405558&r2=1405559&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/LevelPatternConverter.java
Sun Nov  4 15:36:42 2012
@@ -21,6 +21,7 @@ import org.apache.logging.log4j.core.Log
 import org.apache.logging.log4j.core.config.plugins.Plugin;
 
 import java.util.EnumMap;
+import java.util.Locale;
 
 
 /**
@@ -63,7 +64,7 @@ public final class LevelPatternConverter
                 LOGGER.error("Invalid option {}", def);
                 continue;
             }
-            Level level = Level.toLevel(pair[0].trim().toUpperCase(), null);
+            Level level = Level.toLevel(pair[0].trim().toUpperCase(Locale.ENGLISH), null);
             if (level == null) {
                 LOGGER.error("Invalid Level {}", pair[0].trim());
             }



Mime
View raw message