LoggerConfiguration.MaxLogFileCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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