logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1521171 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
Date Mon, 09 Sep 2013 16:05:21 GMT
Author: ggregory
Date: Mon Sep  9 16:05:21 2013
New Revision: 1521171

URL: http://svn.apache.org/r1521171
Log:
Sort members.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java?rev=1521171&r1=1521170&r2=1521171&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/HighlightConverter.java
Mon Sep  9 16:05:21 2013
@@ -72,22 +72,18 @@ import org.apache.logging.log4j.core.lay
 @ConverterKeys({ "highlight" })
 public final class HighlightConverter extends LogEventPatternConverter {
 
-    private static final String STYLE_KEY_DEFAULT = "DEFAULT";
+    private static final EnumMap<Level, String> DEFAULT_STYLES = new EnumMap<Level,
String>(Level.class);
 
-    private static final String STYLE_KEY_LOGBACK = "LOGBACK";
+    private static final EnumMap<Level, String> LOGBACK_STYLES = new EnumMap<Level,
String>(Level.class);
 
     private static final String STYLE_KEY = "STYLE";
 
-    private static final EnumMap<Level, String> DEFAULT_STYLES = new EnumMap<Level,
String>(Level.class);
+    private static final String STYLE_KEY_DEFAULT = "DEFAULT";
 
-    private static final EnumMap<Level, String> LOGBACK_STYLES = new EnumMap<Level,
String>(Level.class);
+    private static final String STYLE_KEY_LOGBACK = "LOGBACK";
 
     private static final Map<String, EnumMap<Level, String>> STYLES = new HashMap<String,
EnumMap<Level, String>>();
 
-    private final List<PatternFormatter> formatters;
-
-    private final EnumMap<Level, String> levelStyles;
-
     static {
         // Default styles:
         DEFAULT_STYLES.put(Level.FATAL, AnsiEscape.createSequence("BRIGHT", "RED"));
@@ -109,18 +105,6 @@ public final class HighlightConverter ex
     }
 
     /**
-     * Construct the converter.
-     *
-     * @param formatters
-     *            The PatternFormatters to generate the text to manipulate.
-     */
-    private HighlightConverter(final List<PatternFormatter> formatters, final EnumMap<Level,
String> levelStyles) {
-        super("style", "style");
-        this.formatters = formatters;
-        this.levelStyles = levelStyles;
-    }
-
-    /**
      * Creates a level style map where values are ANSI escape sequences given configuration
options in
      * {@code option[1]}.
      * <p/>
@@ -196,6 +180,22 @@ public final class HighlightConverter ex
         return new HighlightConverter(formatters, createLevelStyleMap(options));
     }
 
+    private final List<PatternFormatter> formatters;
+
+    private final EnumMap<Level, String> levelStyles;
+
+    /**
+     * Construct the converter.
+     *
+     * @param formatters
+     *            The PatternFormatters to generate the text to manipulate.
+     */
+    private HighlightConverter(final List<PatternFormatter> formatters, final EnumMap<Level,
String> levelStyles) {
+        super("style", "style");
+        this.formatters = formatters;
+        this.levelStyles = levelStyles;
+    }
+
     /**
      * {@inheritDoc}
      */



Mime
View raw message