log4net does not roll over the log file sometimes when rollingstyle set to date
问题 I have a Windows C# application which uses log4net for logging. This is how the loggers are configured: <log4net> <appender name="DebugFileAppender" type="log4net.Appender.RollingFileAppender"> <file value="Local\logs\ApplnTrace.log" /> <threshold value="INFO" /> <appendToFile value="true" /> <rollingStyle value="Date" /> <datePattern value="yyyyMMdd" /> <layout type="log4net.Layout.PatternLayout"> <param name="ConversionPattern" value="%d [%5p] - (%file:%line) %m%n" /> </layout> </appender>