Created
November 29, 2012 16:40
-
-
Save Dillie-O/4170237 to your computer and use it in GitHub Desktop.
Log4Net Basic TextAppender configuration
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
<?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