Created
November 4, 2018 19:08
-
-
Save aaryan79831014/309adc0c150fb3cb8f92de51d2319d94 to your computer and use it in GitHub Desktop.
Log4net debugging changes on web.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Following are the changes that has to be done in web.config for Log4net debugging (if you think the problem with Log4Net logging module itself)--> | |
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<appSettings> | |
<add key="log4net.Internal.Debug" value="true"/> | |
</appSettings> | |
</configuration> | |
And the following has to be added as well | |
<configuration> | |
... | |
<system.diagnostics> | |
<trace autoflush="true"> | |
<listeners> | |
<add | |
name="textWriterTraceListener" | |
type="System.Diagnostics.TextWriterTraceListener" | |
initializeData="C:\tmp\log4net.txt" /> | |
</listeners> | |
</trace> | |
</system.diagnostics> | |
... | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment