log4j 2 adding multiple colors to console appender

前端 未结 6 619
耶瑟儿~
耶瑟儿~ 2020-12-13 04:17

Hi I just downloaded and configured log4j-2. I am stuck on applying color codes to the SlowConsole console appender. My console appender is like below.

6条回答
  •  [愿得一人]
    2020-12-13 04:47

    For a log4j2 colored output that looks very close to Spring Boot's default logback console output:

        
            
        
    

提交回复
热议问题