我在一个.NET Web应用程序一个log4net的。但我想完全禁用它。有可在为了达到这个被设定在web.config任何配置设置。
I have a log4net in one .net web application. But i want to completely disable it. Is there any configuration setting that can be set in the web.config in order to achieve this.
禁用所有消息记录,您可以设置日志记录级别为OFF:
to disable all logging messages you can set Logging level to OFF:
设置阈值的层次结构趋于平稳将禁用所有 从层次记录。这可以在log4net的做 通过设置门槛属性上的log4net的配置文件 配置元素为OFF。例如:
Setting the Threshold on the Hierarchy to Level OFF will disable all logging from that Hierarchy. This can be done in the log4net configuration file by setting the "threshold" attribute on the log4net configuration element to "OFF". For example:
< log4net的阈值=OFF/>
http://logging.apache.org/log4net/release/faq.html
上一篇:automapper缺少类型映射配置或不支持的映射。?或不、类型、automapper
下一篇:如何转换为IEnumerable<任务< T>>到的IObservable< T>转换为、任务、IEnumerable、LT