butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

Logging messages show color code characters around log level instead of coloring it

Open fabiocarvalho777 opened this issue 6 years ago • 6 comments

Sometimes logging messages show color code characters around the log level, instead of coloring it. See the example below.

This behavior has been seen when running Butterfly in Windows machines or Jenkins CI jobs. It has not been seen when running Butterfly in Mac OS. Having said that, it might be OS specific.

Example of logging statement with the problem (notice the characters around the log level INFO):

[09:36:53.323] [[34mINFO[0;39m] 	1	 - Packaging for POM file /pom.xml has been changed to jar
[09:36:53.438] [[34mINFO[0;39m] 	2	 - Parent for POM file /pom.xml has been set to org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE

Example of logging statement without the problem (notice the log level INFO is print correctly):

[09:36:53.323] [INFO] 	1	 - Packaging for POM file /pom.xml has been changed to jar
[09:36:53.438] [INFO] 	2	 - Parent for POM file /pom.xml has been set to org.springframework.boot:spring-boot-starter-parent:pom:1.5.6.RELEASE

The log level coloring configuration can be seen here.

fabiocarvalho777 avatar Nov 03 '17 21:11 fabiocarvalho777