ColorConsoleAppender for log4j

295 views
Skip to first unread message

Mihai Nita

unread,
Mar 13, 2012, 8:34:00 PM3/13/12
to jansi-dev
I have it coded and working, and I am already using it for a while.

All you have to do is add this line in log4j.properties:
log4j.appender.A=ColorConsoleAppender

And the colors can also be customized in log4j.properties, for
instance:
log4j.appender.A.DebugColour=\u001b[0;36m

Do you think this would belong in jansi?
Or should I host it as a stand-alone thing?
I think it would be nice to be part of a more popular project
(easier to find, fewer chances to "just die", etc.)

What do you think?

Thank you,
Mihai

Andreas Kuhtz

unread,
Oct 17, 2012, 6:36:29 AM10/17/12
to jans...@googlegroups.com
Hi Mihai,
I'm searching for such appender. Can you share the code?

Regards
Andi

Mihai Nita

unread,
Oct 17, 2012, 10:03:11 AM10/17/12
to jans...@googlegroups.com

Andreas Kuhtz

unread,
Oct 18, 2012, 5:03:45 AM10/18/12
to jans...@googlegroups.com
Thanks ;-)

Am Mittwoch, 17. Oktober 2012 16:03:11 UTC+2 schrieb Mihai Nita:
https://github.com/mihnita/java-color-loggers/downloads
:-)

Reply all
Reply to author
Forward
0 new messages