Prevent Log File Creation from Log4Net

Nov 30 2016 2:34 AM
I am using the Log4Net utility for logging the windows application log. I want some kind of configuration settings through which the log files are not created.
I have used the below configuration but from this configuration log files are still created of 0KB. I want that the log files should not be created.
<level value="OFF" />
<appender-ref ref="InfoRollingLogFileAppender" />
<appender-ref ref="ErrorRollingLogFileAppender" />
<appender-ref ref="trace" />
Please help. 

Answers (2)