RollingFileAppender MaxFileSize Property | Apache log4net™ SDK Documentation

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

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public long MaxFileSize { get; set; }

    Public Property MaxFileSize As Long
    	Get
    	Set

    public:
    property long long MaxFileSize {
    	long long get ();
    	void set (long long value);
    }

    member MaxFileSize : int64 with get, set

#### Property Value

Type: Int64
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

#### Reference

RollingFileAppender Class
log4net.Appender Namespace