logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kshah82 <kinnar_s...@persistent.co.in>
Subject Rollingstyle on date is not working for RollingFileAppender
Date Fri, 07 Jan 2011 10:35:23 GMT


We have set rollingstyle on date from my rollingfileappender. What we have
observered that when rolling takes place at 12:00 AM , it does not roll all
data from existing file where logging is happening.For example,  we have
checked around 11:59 the logging file size is around 1000 KB and it rolled
only 17KB of data. We have observered this behaviour for couple of days in a
row. Why is it happening ? Any idea on this. Following is
rollingfileappender configuration : 

    <appender name="RollingFileAppender"
    <threshold value ="ALL"/> 
    <file value="C:\LogFiles\test.log" /> 
    <appendToFile value="true" /> 
    <maximumFileSize value="1GB" /> 
    <staticLogFileName value="true"/> 
    <maxSizeRollBackups value="5" /> 
    <datePattern value=".yyyy-MM-dd".log""/> 
    <rollingStyle value="Composite" /> 

    <layout type="log4net.Layout.PatternLayout">       

Please revert on this ASAP as we are stuck on it.

View this message in context: http://old.nabble.com/Rollingstyle-on-date-is-not-working-for-RollingFileAppender-tp30613040p30613040.html
Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message