I have today discovered that our production systems are missing a lot from their log files. Our current log file contains everything (from midnight to midnight) however when I look at the previous day logs it stops at around 1AM.
I have gone over logs that were created in last few months and it's very random when logs are being cut. Mostly it is between 2400 and 0300.
<appender name="fileLogAppender" type="log4net.Appender.RollingFileAppender" >
<file name="filename" value="..\Logs\Errors.xml" />
<encoding value="utf-8" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd"/>
<threshold value="ERROR" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.XmlLayoutSchemaLog4j">
<locationInfo value="true"/>
</layout>
</appender>
<root>
<level value="Debug" />
<appender-ref ref="fileLogAppender" />
</root>
This spits out XML file with errors (I use YALV! for reading our logs). Our version of Log4net is 1.2.10 (we are unable to upgrade it as its comes with a third party software that seem to crash if log4net is changed.
EDIT1:
I'm running a CMS site (EPiServer 6 R2) - .NET4 in IIS7 load balanced (4 servers + 1DB). Yesterday's log of 50MB got rolled over to a log of 4KB.