<?xml version="1.0" encoding="utf-8" ?> <!-- Xml file that contains the configuration of Log4net --> <configuration> <configSections> <section name="log4net" type="System.Configuration.IgnoreSectionHandler"/> </configSections> <log4net> <!-- RollingFileAppender : Writing events to a file. Ability to log on multiple files based on date and time. --> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="C:\...\x.log" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="10" /> <maximumFileSize value="1MB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger - %message%newline" /> </layout> </appender> <!-- We define the root logger to DEBUG level and is associated with the RollingFileAppender appender --> <root> <level value="DEBUG" /> <!-- <appender-ref ref="ConsoleAppender" /> --> <appender-ref ref="RollingFileAppender" /> </root> </log4net>
<file value="C:\...\x.log" />
<maximumFileSize value="1MB" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)