You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/04/04 22:30:05 UTC

[jira] [Updated] (LOG4NET-413) RollingLogFileAppender doesn't use MaxSizeRollBackups setting

     [ https://issues.apache.org/jira/browse/LOG4NET-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4NET-413:
--------------------------------

LOG4NET is now dormant.  

> 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
(v8.3.4#803005)