Intellij 14 console not respecting ANSI colors


I have defined color highlighting in my logback appender configuration:

      <pattern>[%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n</pattern>

However, logs in IDEA Intellij 14 console are still black and white with ANSI color not escaped:

    [main] [39mDEBUG[0;39m [36mo.o.x.XMLConfigurator[0;39m - Loading configuration from XML Document

How can I fix it?

Comment actions Permalink

ANSI coloring is already supported, but it depends on the run/debug configuration type that you are using. Java Application configuration supports it starting from IntelliJ IDEA 14.

You can also try this third-party plug-in.

Comment actions Permalink

i have the latest intelliJ version. I cannot highlight the logs on the console. I have ANSI highlighter plugin and also Darkula theme selected. I use log4j2 for highlighting. Do you know what might be the conflict?

Comment actions Permalink

Please share the sample project and provide the steps to reproduce it.


Please sign in to leave a comment.