2
Reply

Prevent Log File Creation from Log4Net

ashutosh kumar gupta

ashutosh kumar gupta

Nov 30 2016 2:34 AM
391
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.
 
<root>
<level value="OFF" />
<appender-ref ref="InfoRollingLogFileAppender" />
<appender-ref ref="ErrorRollingLogFileAppender" />
<appender-ref ref="trace" />
</root>
 
Please help. 
 

Upload Source Code  Select only zip and rar file.
Answers (2)