logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory" <ggreg...@seagullsoftware.com>
Subject RE: Colorized output with ConsoleAppender
Date Mon, 06 Sep 2004 17:28:53 GMT
According to Ant docs and my experience, the Ant colorized stuff does
not work on Windows XP. If get it to work, could you post your solution
here or on Ant's list? Thanks. Gary

> -----Original Message-----
> From: Ingo Thon [mailto:isthon@gmx.de]
> Sent: Monday, September 06, 2004 01:45
> To: log4j-user@logging.apache.org
> Subject: Colorized output with ConsoleAppender
> 
> Hi,
> 
> I'm looking for a possibility to use colorised output with the
> Consoleappender such that
> 
> 2004-09-06 10:16:58,567 [xxx (yyy: lll)] INFO - msg
> will appear in yellow
> 2004-09-06 10:16:58,568 [xxx (yyy: lll)] ERROR - msg
> will appear in red
> 
> comparable to
> http://ant.apache.org/manual/listeners.html#AnsiColorLogger
> 
> If I'm right I only have to change the appender configuration
> currently I'm using
>        <appender name="appender"
> class="org.apache.log4j.ConsoleAppender">
>          <layout class="org.apache.log4j.PatternLayout">
>            <param name="ConversionPattern" value="%d [%l] %p - %m%n"/>
>          </layout>
>        </appender>
> but I don't have any idea how.
> 
> Thanks in advance
> 
> Ingo
> 
> PS: on the wiki page
> http://wiki.apache.org/logging-log4j/Log4JProjectPages is the old
> mailinglist address
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message