> Any thoughts?
 
This is a wild guess, but could it be related to changed security rights
and permissions to the location of the log files relative to the Windows
account that the program is running under?
 
Rennie
 


________________________________

        From: vikram srinivasan [mailto:[EMAIL PROTECTED] 
        Sent: 18. juli 2008 16:19
        To: [email protected]
        Subject: RollingFileAppender not working
        
        
        Hi All
         
        We have an app that uses log4net 1.2.0.22663. Its deployed on
Win2K3 server, running on IIS 6.0. My log4net config look like, 
         
        <log4net debug="false">
          <appender name="LogFileAppender"
type="log4net.Appender.RollingFileAppender,log4net">
           <param name="File"
value="..\\..\\settings\\logs\\WindowsCWSLog.txt"/>
           <param name="AppendToFile" value="true"/>
           <param name="RollingStyle" value="Size"/>
           <param name="MaxSizeRollBackups" value="20"/>
           <!-- max file size for hte log before it rolls over... 10MB
-->
           <param name="MaximumFileSize" value="10000KB"/>
           <param name="StaticLogFileName" value="true"/>
           <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] %-5p %c [%x]
- %m%n"/>
           </layout>
          </appender>
          <root>
           <level value="DEBUG"/>
           <appender-ref ref="LogFileAppender"/>
          </root>
         </log4net>    
            
        As you can see I have set up a size based rolling over.
Recently, this seems to have broken. I turned on internal debugging and
got this error,
        log4net:ERROR RollingFileAppenderOutput stream for appender
named [LogFileAppender] has been closed.
         
        Rolling over is no longer happening and logging is off until I
manually roll the file over. Also, the count direction (although not set
in the config) is less than 0 as I see the last rolled over file having
the highest number.
         
        Any thoughts?
         
        Thanks
        Srini

Reply via email to