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.
to disable all logging messages you can set Logging level to 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 threshold="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 threshold="OFF" />
http://logging.apache.org/log4net/release/faq.html
2.1m questions
2.1m answers
60 comments
57.0k users