log4j 2 adding multiple colors to console appender

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

    When using the eclipse console, its nice to see errors in red and all other logs in black. You can do this using Filters:

    
        
            
            
        
        
            
            
        
    
    
        
            
            
        
    
    

提交回复
热议问题