1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <log4net>
<root>
<level value="DEBUG"/>
<appender-ref ref="RollingLogFileAppender" />
<appender-ref ref="ConsoleAppender" />
</root>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender" >
<maximumFileSize value="10MB" />
<maxSizeRollBackups value="2" />
<rollingStyle value="Size" />
<file value="FichierDeTrace.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger - %message%newline" />
</layout>
</appender> |