问题描述:

This question already has an answer here:

  • Making a log4j console appender use different colors for different threads

    2 answers

网友答案:

It's not possible to change colors of slf4j logging, because there are no formatters. SLF4J is a middleware between your application and some logging facility, for example, Log4j or Logback.

You can change colors in Log4j output, as explained here.

相关阅读:
Top