Search code examples
consolehighlightspring-tools-4

Spring Tool Suite 4 Console Color issue


I'm developing a Spring Boot application with Spring Tools Suite 4. I don't know why but most of the log messages are highlighted in red color. Only the spring boot logo has a normal color highlighting.

I have the following setup:

  • STS-4.2.2
  • Maven 3.6.1
  • spring.output.ansi.enabled=always
  • Windows 7 with an older powershell version (if that even matters)
  • Eclipse console settings are standard (only syserr should create red events).

Did I miss something? Thanks for your help


Solution

  • I found the problem. I expected standard Spring Boot Logging to be in place (which is Logback). But this library was not included. So by adding this dependency, everything works like a charm.

    <dependency>
       <groupId>ch.qos.logback</groupId>
       <artifactId>logback-classic</artifactId>
    </dependency>