logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1415033 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
Date Thu, 29 Nov 2012 02:32:33 GMT
Author: ggregory
Date: Thu Nov 29 02:32:32 2012
New Revision: 1415033

URL: http://svn.apache.org/viewvc?rev=1415033&view=rev
Log:
Use var args.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java?rev=1415033&r1=1415032&r2=1415033&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
Thu Nov 29 02:32:32 2012
@@ -84,19 +84,19 @@ public final class HighlightConverter ex
 
     static {
         // Default styles:
-        DEFAULT_STYLES.put(Level.FATAL, AnsiEscape.createSequence(new String[] { "BRIGHT",
"RED" }));
-        DEFAULT_STYLES.put(Level.ERROR, AnsiEscape.createSequence(new String[] { "BRIGHT",
"RED" }));
-        DEFAULT_STYLES.put(Level.WARN, AnsiEscape.createSequence(new String[] { "YELLOW"
}));
-        DEFAULT_STYLES.put(Level.INFO, AnsiEscape.createSequence(new String[] { "GREEN" }));
-        DEFAULT_STYLES.put(Level.DEBUG, AnsiEscape.createSequence(new String[] { "CYAN" }));
-        DEFAULT_STYLES.put(Level.TRACE, AnsiEscape.createSequence(new String[] { "BLACK"
}));
+        DEFAULT_STYLES.put(Level.FATAL, AnsiEscape.createSequence("BRIGHT", "RED"));
+        DEFAULT_STYLES.put(Level.ERROR, AnsiEscape.createSequence("BRIGHT", "RED"));
+        DEFAULT_STYLES.put(Level.WARN, AnsiEscape.createSequence("YELLOW"));
+        DEFAULT_STYLES.put(Level.INFO, AnsiEscape.createSequence("GREEN"));
+        DEFAULT_STYLES.put(Level.DEBUG, AnsiEscape.createSequence("CYAN"));
+        DEFAULT_STYLES.put(Level.TRACE, AnsiEscape.createSequence("BLACK"));
         // Logback styles:
-        LOGBACK_STYLES.put(Level.FATAL, AnsiEscape.createSequence(new String[] { "BLINK",
"BRIGHT", "RED" }));
-        LOGBACK_STYLES.put(Level.ERROR, AnsiEscape.createSequence(new String[] { "BRIGHT",
"RED" }));
-        LOGBACK_STYLES.put(Level.WARN, AnsiEscape.createSequence(new String[] { "RED" }));
-        LOGBACK_STYLES.put(Level.INFO, AnsiEscape.createSequence(new String[] { "BLUE" }));
-        LOGBACK_STYLES.put(Level.DEBUG, AnsiEscape.createSequence(null));
-        LOGBACK_STYLES.put(Level.TRACE, AnsiEscape.createSequence(null));
+        LOGBACK_STYLES.put(Level.FATAL, AnsiEscape.createSequence("BLINK", "BRIGHT", "RED"));
+        LOGBACK_STYLES.put(Level.ERROR, AnsiEscape.createSequence("BRIGHT", "RED"));
+        LOGBACK_STYLES.put(Level.WARN, AnsiEscape.createSequence("RED"));
+        LOGBACK_STYLES.put(Level.INFO, AnsiEscape.createSequence("BLUE"));
+        LOGBACK_STYLES.put(Level.DEBUG, AnsiEscape.createSequence((String[]) null));
+        LOGBACK_STYLES.put(Level.TRACE, AnsiEscape.createSequence((String[]) null));
         // Style map:
         STYLES.put(STYLE_KEY_DEFAULT, DEFAULT_STYLES);
         STYLES.put(STYLE_KEY_LOGBACK, LOGBACK_STYLES);



Mime
View raw message