How do I turn logging off using log4j?

前端 未结 5 1279
独厮守ぢ
独厮守ぢ 2020-12-30 09:16

I am using a third-party library which has a log4j.xml configuration - what\'s the best way to turn off the logging?

5条回答
  •  遥遥无期
    2020-12-30 09:56

    With log4j.xml the minimal solution looks like this:

    
    
    
    
    
    

    Note that in threshold="off", "off" must be in lower case.

提交回复
热议问题