Getting Spring Boot color console logging working within Intellij?

Using a Mac, Intellij Idea 14 and Spring Boot v1.2.2.RELEASE, all you have to do is set:

spring.output.ansi.enabled=ALWAYS

I have added this as a VM option (-Dspring.output.ansi.enabled=ALWAYS). Works great!


Simply by adding those properties to application.properties for IntelliJ IDEA:

spring.main.banner-mode=off 
spring.output.ansi.enabled=ALWAYS

  • install Eclipse plugin called Ansi Console from market place.
  • spring.output.ansi.enabled=ALWAYS @ Application.properties/yml.
  • Run application as spring boot and u will see color logs in console.

In application.properties use (for example) the following line:

logging.pattern.console= %d{yyyy-MMM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{15}) - %msg %n

If you would like almost similar to Spring Boot you can use pattern like this:

%date  %highlight(%-5level) [%12.12thread] %cyan(%-40.40logger{40}) : %msg %n