Link to home
Create AccountLog in
Avatar of max_dub
max_dubFlag for Ireland

asked on

log4j color coding

while using log4j for logging

is it possible to console output info or warning logs for particular class in a particular color or any other sort color coded logging?


Avatar of CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of max_dub


as written on the link comments too,
its doesn't work for ConsoleAppender

if i remember correctly, i tired using it few months ago too, no luck

so, thats for sure, log4j in itself doesn't have color options?

Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
>>and theres nothing around that achieves what you want

That's actually incorrect. I used to use something at work that showed log4j logs in colour in an NT console - unfortunately i can't remember what it is.

Another thing you could do is use a good extensible editor like Vim that can do syntax highlighting.

You shouldn't need to use server-side software to do this