How do I Filter on a custom Level in log4net?

后端 未结 2 1654
执念已碎
执念已碎 2020-12-05 20:09

I copied the log4net samples to implement a custom log level, AUDIT. I defined AUDIT to have a value of 35000, between DEBUG 30000 and INFO 40000.

The following is m

2条回答
  •  情话喂你
    2020-12-05 21:02

    log4net version 1.2.10 requires that you end a LevelMatchFilter chain with a DenyAllFilter if you want the behavior I described in the question.

    
      
        
      
      
      
      
        
      
    
    

提交回复
热议问题