logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1404701 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
Date Thu, 01 Nov 2012 18:10:04 GMT
Author: ggregory
Date: Thu Nov  1 18:10:04 2012
New Revision: 1404701

URL: http://svn.apache.org/viewvc?rev=1404701&view=rev
Log:
Allow custom ANSI mappings for Levels using a STYLE options: STYLE can be one of Default or
Logback.

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=1404701&r1=1404700&r2=1404701&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  1 18:10:04 2012
@@ -74,8 +74,6 @@ public final class HighlightConverter ex
 
     private static final String STYLE_KEY_LOGBACK = "LOGBACK";
 
-    private static final String STYLE_KEY_LOG4J = "LOG4J";
-
     private static final String STYLE_KEY = "STYLE";
 
     private static final EnumMap<Level, String> DEFAULT_STYLES = new EnumMap<Level,
String>(Level.class);
@@ -101,7 +99,6 @@ public final class HighlightConverter ex
         LOGBACK_STYLES.put(Level.TRACE, AnsiEscape.createSequence(null));
         // Style map:
         STYLES.put(STYLE_KEY_DEFAULT, DEFAULT_STYLES);
-        STYLES.put(STYLE_KEY_LOG4J, DEFAULT_STYLES);
         STYLES.put(STYLE_KEY_LOGBACK, LOGBACK_STYLES);
     }
 



Mime
View raw message