How to set filter in the log4j.xml

后端 未结 2 1288
孤独总比滥情好
孤独总比滥情好 2021-01-04 07:15

HI,

In our web application it prints all the logs are printed like Spring and JSF jars files. Which not required for us. How can I set in the log4j.xml file to filte

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 07:52

    Log only warning for Spring :

    
        
        
        
    
    

    Same for JSF with the jsf package name... javax.faces, org.apache.myfaces, com.sun.faces etc... also, the appender-ref refers to your appenders...

提交回复
热议问题