Did you try searching the list archives? Other users have experienced this problem. The short answer would be to upgrade to the latest version in source control. You may also want to check out the thread from Sunday of this week titled:
Logging truncates the file at noon --- Baldree Matt <[EMAIL PROTECTED]> wrote: > Is this a known problem? We are using log4net 1.2.0 beta 8. > > When using a RollingFileAppender that's configured to roll by Date, > logs > created before noon on a given day are overwritten by logs created > after > noon on that day. So if you look at a log file before noon, you'll > see > logged events for that morning, but an event that is logged after > 12:00pm > overwrites the file so that all logs appear to start at 12:00pm. > > Here's an appender that causes this problem: > > <appender name="RollingFileAppender" > type="log4net.Appender.RollingFileAppender"> > > <param name="DatePattern" value="yyyyMMdd" /> > > <param name="File" value="Log\\" /> > > <param name="AppendToFile" value="true" /> > > <param name="Threshold" value="Debug" /> > > <param name="MaxSizeRollBackups" value="30" /> > > <param name="RollingStyle" value="Date" /> > > <param name="StaticLogFileName" value="false" /> > > <param name="CountDirection" value="-1" /> > > <layout type="log4net.Layout.PatternLayout"> > > <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n" > /> > > </layout> > > </appender> > >
