Skip to content

Instantly share code, notes, and snippets.

@regme
Created March 12, 2014 09:16
Show Gist options
  • Save regme/9503486 to your computer and use it in GitHub Desktop.
Save regme/9503486 to your computer and use it in GitHub Desktop.
log4net self logging
<configuration>
<appSettings>
<add key="log4net.Internal.Debug" value="true"/>
</appSettings>
</configuration>
<system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="textWriterTraceListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\tmp\log4net.txt" />
</listeners>
</trace>
</system.diagnostics>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment