<log4net>
<appender name="ErrorLog" type="log4net.Appender.RollingFileAppender">
<file value="log\error\log-file.txt" />
<appendToFile value="true" />
<rollingStyle value="Composite" />
<maxSizeRollBackups value="15" />
<maximumFileSize value="15000KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="DEBUG" />
<appender-ref ref="ErrorLog" />
</root>
</log4net>
No comments:
Post a Comment