当前位置: 动力学知识库 > 问答 > 编程问答 >

java - How to display error message with some colors using slf4j logger?

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: