Skip to content

Instantly share code, notes, and snippets.

@aaryan79831014
Created November 4, 2018 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaryan79831014/309adc0c150fb3cb8f92de51d2319d94 to your computer and use it in GitHub Desktop.
Save aaryan79831014/309adc0c150fb3cb8f92de51d2319d94 to your computer and use it in GitHub Desktop.
Log4net debugging changes on web.config
<!--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