Coloring Output Run as Grails Application

Answered

Good morning

When I run my grails application within IntelliJ, my output does not get colored. This is not the case when I have a normal Spring boot application.
While debugging I see that the ANSI instructions are delivered to the Output Stream (ch.qos.logback.core.encoder.LayoutWrappingEncoder#doEncode)

E.g. the String with instruction:
[2m2016-07-08 10:27:23.985[0;39m [32m INFO[0;39m [35m8370[0;39m [2m---[0;39m [2m[ main][0;39m [36mg.plugins.DefaultGrailsPluginManager [0;39m [2m:[0;39m Grails plug-in [eventBus] with version [3.1.7] loaded successfully

 

results in the following output (without any color):
2016-07-08 10:27:23.985 INFO 8370 --- [ main] g.plugins.DefaultGrailsPluginManager : Grails plug-in [eventBus] with version [3.1.7] loaded successfully

Many thanks for helping.

Kind regards

Raffael

 

Please sign in to leave a comment.