SCJMapper-V2/log4net.config
2014-07-05 22:46:58 +02:00

35 lines
1.2 KiB
XML

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/>
</configSections>
<log4net>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="trace.log"/>
<!--Indicates whether the file should be appended to or overwritten.-->
<appendToFile value="true"/>
<!--Roll files based only on the size of the file-->
<rollingStyle value="Size"/>
<!--The maximum number of backup files that are kept before the oldest is erased.-->
<maxSizeRollBackups value="10"/>
<maximumFileSize value="500KB"/>
<!--true if always should be logged to the same file, otherwise false.-->
<staticLogFileName value="true"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date|%-5level|%logger|%message%newline%exception"/>
</layout>
</appender>
<!-- Setup the root category, add the appenders and set the default level. -->
<root>
<level value="ALL"/> <!-- default: INFO - extensive: ALL -->
<appender-ref ref="RollingFileAppender"/>
</root>
</log4net>
</configuration>