log4.net 配置

 自定义过滤器按LoggerName过滤日志,本来想使用 PropertyFilter 来实现,后来研究发现一直不能成功,源代码debug了一下获取一直为null,时间关系只好用 StringMatchFilter 的源码自己改一下。

配置方法和 StringMatchFilter 相同

 View Code

原文地址:https://www.cnblogs.com/jgjgjg23/p/9234171.html