log4net SDK Reference

RollingFileAppender.MaxFileSize Property

Gets or sets the maximum size that the output file is allowed to reach before being rolled over to backup files.

[Visual Basic]
Public Property MaxFileSize As Long
[C#]
public long MaxFileSize {get; set;}

Property Value

The maximum size in bytes that the output file is allowed to reach before being rolled over to backup files.

Remarks

This property is equivalent to MaximumFileSize except that it is required for differentiating the setter taking a Int64 argument from the setter taking a String argument.

The default maximum file size is 10MB (10*1024*1024).

See Also

RollingFileAppender Class | log4net.Appender Namespace