LoggerConfiguration.MaxLogFileCount Property

Definition

Maximum number of logfiles to store. Default is 2. The logfile name format changes when the value is >= 3. Setting maxLogFileCount to 0 will disable logging. Setting to -1 indicate no maximum for file count. All other negative values are invalid

public int MaxLogFileCount { get; }
member this.MaxLogFileCount : int
Public ReadOnly Property MaxLogFileCount As Integer

Property Value

Applies to