You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Nicko Cadell (JIRA)" <ji...@apache.org> on 2005/07/18 18:30:17 UTC

[jira] Created: (LOG4NET-40) RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1

RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1
---------------------------------------------------------------------------------------

         Key: LOG4NET-40
         URL: http://issues.apache.org/jira/browse/LOG4NET-40
     Project: Log4net
        Type: Bug
  Components: Appenders  
    Versions: 1.2.9    
    Reporter: Nicko Cadell
 Assigned to: Nicko Cadell 


RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1

When the CountDirection is positive the log files are named in ascending order. The total number of archive files should be limited to the MaxSizeRollBackups property value. The number of archive files is not limited.

An appender config that reproduces this behaviour is:

<appender name="CountUpRollingFileAppender" type="log4net.Appender.RollingFileAppender">
  <file value="log-file-count-up-roll.txt" />
  <rollingStyle value="Size" />
  <maxSizeRollBackups value="10" />
  <maximumFileSize value="100" />
  <countDirection value="1" />
  <staticLogFileName value="false" />
  <layout type="log4net.Layout.PatternLayout" value="%date %-5level %logger - %message%newline" />
</appender>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (LOG4NET-40) RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1

Posted by "Nicko Cadell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/LOG4NET-40?page=all ]
     
Nicko Cadell resolved LOG4NET-40:
---------------------------------

    Fix Version: 1.2.10
     Resolution: Fixed

> RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1
> ---------------------------------------------------------------------------------------
>
>          Key: LOG4NET-40
>          URL: http://issues.apache.org/jira/browse/LOG4NET-40
>      Project: Log4net
>         Type: Bug
>   Components: Appenders
>     Versions: 1.2.9
>     Reporter: Nicko Cadell
>     Assignee: Nicko Cadell
>      Fix For: 1.2.10

>
> RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1
> When the CountDirection is positive the log files are named in ascending order. The total number of archive files should be limited to the MaxSizeRollBackups property value. The number of archive files is not limited.
> An appender config that reproduces this behaviour is:
> <appender name="CountUpRollingFileAppender" type="log4net.Appender.RollingFileAppender">
>   <file value="log-file-count-up-roll.txt" />
>   <rollingStyle value="Size" />
>   <maxSizeRollBackups value="10" />
>   <maximumFileSize value="100" />
>   <countDirection value="1" />
>   <staticLogFileName value="false" />
>   <layout type="log4net.Layout.PatternLayout" value="%date %-5level %logger - %message%newline" />
> </appender>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira