log4net: Configure to ignore messages from a specific class

前端 未结 5 821
孤独总比滥情好
孤独总比滥情好 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:48

    You might want to try to apply a category to your own messages Try this thread: How to add category prefix to log4net message?

提交回复
热议问题