NAVSourceControl/NAV Source Control Test Host/Config Files/log4net.config

43 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2016-11-19 21:51:06 +00:00
<?xml version="1.0" encoding="utf-8" ?>
2016-11-19 21:35:33 +00:00
<log4net>
2016-11-19 21:51:06 +00:00
<appender name="Console" type="log4net.Appender.ColoredConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5timestamp [%thread] %-5level %logger - %message%newline" />
</layout>
<mapping>
<level value="ERROR" />
<foreColor value="Red, HighIntensity" />
</mapping>
<mapping>
<level value="WARN" />
<foreColor value="Yellow, HighIntensity" />
</mapping>
</appender>
2016-11-19 21:35:33 +00:00
2016-11-19 21:51:06 +00:00
<!-- Optional - for performance Reasons, enable via root logger instead of RollingFile if desired-->
<appender name="BufferingForwardingAppender" type="log4net.Appender.BufferingForwardingAppender">
<appender-ref ref="RollingFile" />
<bufferSize value="64" />
<evaluator type="log4net.Core.LevelEvaluator">
<threshold value="ERROR"/>
</evaluator>
</appender>
<appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
<file value="vcs.log" />
<appendToFile value="true" />
<maximumFileSize value="100KB" />
<maxSizeRollBackups value="2" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="Console" />
<!-- appender-ref ref="BufferingForwardingAppender" / -->
<appender-ref ref="RollingFile" />
</root>
2016-11-19 21:35:33 +00:00
</log4net>