log4j 2 adding multiple colors to console appender

前端 未结 6 632
耶瑟儿~
耶瑟儿~ 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:29

    
    
        
            
                
            
        
        
            
                
            
        
    
    

    This worked in my Spring Boot application.

    But I am not sure if it will work without Spring Boot.

提交回复
热议问题