Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Created November 29, 2012 16:40
Show Gist options
  • Save Dillie-O/4170237 to your computer and use it in GitHub Desktop.
Save Dillie-O/4170237 to your computer and use it in GitHub Desktop.
Log4Net Basic TextAppender configuration
<?xml version="1.0" encoding="utf-8"?>
<log4net debug="false">
<appender name="file-appender" type="log4net.Appender.FileAppender">
<file value="log-file.txt" />
<appendToFile value="true" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
</layout>
</appender>
<root>
<level value="WARN" />
<appender-ref ref="file-appender" />
</root>
</log4net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment