Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.2.10
-
None
-
XP
Description
Hi,
I have set configuration properties as below.
<appender name="DMLRollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="DML Log.txt" />
<appendToFile value="true" />
<rollingStyle value="Composite" />
<maxSizeRollBackups value="5" />
<maximumFileSize value="5000KB" />
<datePattern value=".yyyyMMdd" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date
%-5logger %-5level [%-15.15thread] > %message%newline"/>
</layout>
</appender>
When is in running mode, data gets locked correctely but in the mean time if date changes, previous date's backup is not getting created. This happens only if application is running else it works perfectely.
Please help.
Attachments
Issue Links
- duplicates
-
LOG4NET-280 Rolling appender doesnt roll 0kb file, configured to roll on date.
- Open