Log4Net worked fine for a few months and then started giving problems when rolling out a new file for the next day.
Problem: When ever i check in the daytime or until 23:59 everything is logged but as soon as it rolls over, the rolled file will have the data of 00:00 - 06:00 hrs of the next day. all the logs of the previous day is lot.
so for the rolledfile Service.log20100702 will contain the data 00:00 - 06:00 hrs for 03/07/2010 date and nothing else.
The problem is mainly on the Production boxes, its working fine on the my localbox.
my rolling file appender looks like
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="C:\TTLLogs\Refunds\Ttl.Refunds.Web.UI.log"/>
<appendToFile value="true" />
<datePattern value="yyyyMMdd" />
<rollingStyle value="Date" />
<maximumFileSize value="10MB" />
<maxSizeRollBackups value="100" />
<layout type="log4net.Layout.PatternLayout">
<header value="[Header]
"/>
<footer value="[Footer]
"/>
<conversionPattern value="%date %-5level %logger ${COMPUTERNAME} %property{UserHostAddress} [%property{SessionID}] - %message%newline"/>
</layout>
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
</appender>