When using the RollingLogFileAppender, when a date
change occurs the appender does not roll-over all of the
files that should be rolled over.
In the attached picture:
1. The jpg was taken on 10/16
2. log.txt.1 - log.txt.10 were created on 10/14. These
log files should have renamed log.txt.2003-10-14.1 -
log.txt.2003-10-14.10 on 10/15
This is the definition of the logger that I am using:
<appender name="RollingLogFileAppender"
type="log4net.Appender.RollingFileAppender,log4net-net-
1.1">
<param name="File" value="log-data\\log.txt" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="10" />
<param name="MaximumFileSize" value="5MB" />
<param name="StaticLogFileName" value="true" />
</appender>
Picture shows the log directory with problem