logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1574212 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/StyleConverter.java
Date Tue, 04 Mar 2014 21:26:44 GMT
Author: ggregory
Date: Tue Mar  4 21:26:44 2014
New Revision: 1574212

URL: http://svn.apache.org/r1574212
Log:
Reuse refactoring from [LOG4J2-561] to allow spaces around commas in Configuration's package
attribute.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/StyleConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/StyleConverter.java?rev=1574212&r1=1574211&r2=1574212&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/StyleConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/StyleConverter.java
Tue Mar  4 21:26:44 2014
@@ -55,7 +55,7 @@ public final class StyleConverter extend
         }
         final PatternParser parser = PatternLayout.createPatternParser(config);
         final List<PatternFormatter> formatters = parser.parse(options[0]);
-        final String style = AnsiEscape.createSequence(options[1].split("\\s*,\\s*"));
+        final String style = AnsiEscape.createSequence(options[1].split(Patterns.COMMA_SEPARATOR));
         final boolean noConsoleNoAnsi = options.length > 2
                 && (PatternParser.NO_CONSOLE_NO_ANSI + "=true").equals(options[2]);
         final boolean hideAnsi = noConsoleNoAnsi && System.console() == null;



Mime
View raw message