logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1404592 - /logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java
Date Thu, 01 Nov 2012 13:48:00 GMT
Author: ggregory
Date: Thu Nov  1 13:47:59 2012
New Revision: 1404592

URL: http://svn.apache.org/viewvc?rev=1404592&view=rev
Log:
Shows how to use ANSI escape codes to color messages.

Modified:
    logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java

Modified: logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java?rev=1404592&r1=1404591&r2=1404592&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/test/java/org/apache/logging/log4j/core/appender/ConsoleAppenderAnsiMessagesMain.java
Thu Nov  1 13:47:59 2012
@@ -24,7 +24,7 @@ public class ConsoleAppenderAnsiMessages
             LOG.warn("\u001b[0;33mWarning message.\u001b[0m");
             LOG.info("\u001b[0;32mInformation message.\u001b[0m");
             LOG.debug("\u001b[0;36mDebug message.\u001b[0m");
-            LOG.trace("\u001b[1;30mTrace message.\u001b[0m");
+            LOG.trace("\u001b[0;30mTrace message.\u001b[0m");
             LOG.error("\u001b[1;31mError message.\u001b[0m", new IOException("test"));
         } finally {
             Configurator.shutdown(ctx);



Mime
View raw message