log4net: Configure to ignore messages from a specific class

前端 未结 5 824
孤独总比滥情好
孤独总比滥情好 2020-12-02 15:24

Is there a way to have the log4net configuration ignore a specific class? For example, we generally create a log in every class. Similar to this:

private sta         


        
5条回答
  •  囚心锁ツ
    2020-12-02 15:40

    Just wanted to post the common exclusions if you are using NHibernate and log4net. Note that each filter needs its own element.

    
        
        
      
      
        
        
      
      
        
        
      
    

提交回复
热议问题