29 lines
1.2 KiB
Plaintext
29 lines
1.2 KiB
Plaintext
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<log4net>
|
||
|
<!-- A1 is set to be a ConsoleAppender -->
|
||
|
<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>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<!-- Set root logger level to DEBUG and its only appender to A1 -->
|
||
|
<root>
|
||
|
<level value="DEBUG" />
|
||
|
<appender-ref ref="Console" />
|
||
|
<appender-ref ref="RollingFile" />
|
||
|
</root>
|
||
|
</log4net>
|