log4j debug messages not showing in console despite isDebugEnabled being true

前端 未结 2 1698
一生所求
一生所求 2021-02-07 15:18

I am using the following code within my project to log debug messages with log4j

private static final Logger LOG = Logger.getLogger(MyClass.class)
// ...
if(LOG.         


        
2条回答
  •  日久生厌
    2021-02-07 15:50

    Make sure your configuration has below appender...We have used log4j.xml so i am adding from xml

    
        
        
        
            
        
    
    
    
        
        
        
            
        
    
    

提交回复
热议问题