Simple example (max. 180 days backwards):
<appender name="AuditFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="d:\audit_logs\log.txt_" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<param name="maxSizeRollBackups" value="180" />
<param name="StaticLogFileName" value="false"/>
<param name="DatePattern" value="dd-MM-yyyy"/>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%message%newline" />
</layout>
</appender>
Žiadne komentáre:
Zverejnenie komentára