How can I colorize the console output with log4j?

Is it possible to use different colors in the Build Log of TeamCity?

The background to this question is, that we have different apps logging to the Build Log:

  • Maven
  • Tomcat
  • JBoss
  • Selenium
  • etc.

As you can imagine, it is very hard to distinguish the different logs. A colorized output would be very helpful.

Comment actions Permalink

Hi Timo

Colors in a build log are intended to hightlight problems.
You can control this status using service messages.

Tree view of build log allows to group related messages into blocks, and collapse/expand them.


Comment actions Permalink

Hi Michael,

great news! Thank you. I think grouping the messages are even better.

Comment actions Permalink

Hello, Timo,

There is also a related issue about build log messages coloring
Feel free to vote!

Comment actions Permalink

Hi Victory, thank you. I voted for the ticket.


Please sign in to leave a comment.