logging-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1405562&view=rev
Log:
Locale.ENGLISH

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderRef.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderRef.java?rev=1405562&r1=1405561&r2=1405562&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderRef.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/AppenderRef.java
Sun Nov  4 15:39:27 2012
@@ -16,6 +16,8 @@
  */
 package org.apache.logging.log4j.core.config;
 
+import java.util.Locale;
+
 import org.apache.logging.log4j.Level;
 import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.Filter;
@@ -73,7 +75,7 @@ public final class AppenderRef {
         Level l = null;
 
         if (level != null) {
-            l = Level.toLevel(level.toUpperCase(), null);
+            l = Level.toLevel(level.toUpperCase(Locale.ENGLISH), null);
             if (l == null) {
                 LOGGER.error("Invalid level " + level + " on Appender reference " + ref);
             }



Mime
View raw message