logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaliy L (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4NET-413) RollingLogFileAppender doesn't use MaxSizeRollBackups setting
Date Thu, 12 Dec 2013 09:46:07 GMT
Vitaliy L created LOG4NET-413:
---------------------------------

             Summary: RollingLogFileAppender doesn't use MaxSizeRollBackups setting
                 Key: LOG4NET-413
                 URL: https://issues.apache.org/jira/browse/LOG4NET-413
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.13
            Reporter: Vitaliy L
            Priority: Critical


RollingLogFileAppender doesn't use 'MaxSizeRollBackups' setting when 'PreserveLogFileNameExtension'
is set to 'true'. 

These settings work right:
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
      <param name="File" value="log.txt" />
      <param name="AppendToFile" value="true" />
      <param name="MaxSizeRollBackups" value="8" />
      <param name="MaximumFileSize" value="67108864" />
      <param name="RollingStyle" value="Size" />
      <param name="StaticLogFileName" value="false" />
      <param name="CountDirection" value="1" />
</appender>
But when we added line:
<param name="PreserveLogFileNameExtension" value="true" />
then log4net created more than 8 backup files (we got more that 100 items before we stopped
the process because of low disk space)




--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message