Issue Details (XML | Word | Printable)

Key: LOG4NET-40
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Nicko Cadell
Reporter: Nicko Cadell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4net

RollingFileAppender does not limit files to MaxSizeRollBackups when CountDirection is 1

Created: 19/Jul/05 01:25 AM   Updated: 19/Jul/05 07:23 PM
Return to search
Component/s: Appenders
Affects Version/s: 1.2.9
Fix Version/s: 1.2.10

Time Tracking:
Not Specified

Resolution Date: 19/Jul/05 07:23 PM


 Description  « Hide
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>

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.