LoggerConfiguration.MaxLogFileSizeMb Property

Definition

Maximum size for a logfile in MB. Default is 20 MB. Setting maxLogFileSizeMb to 0 will disable logging. Setting to -1 indicate no maximum size limit. All other negative values are invalid. Max allowed limit is 1024

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

Property Value

Applies to