Method
LogStream.ConfigureRotatingPolicy
ConfigureRotatingPolicy(long, TimeSpan) #
Defines the time interval and size threshold for starting the task, and then starts the task. This method is an shortcut for calling Configure of this defined RotatingPolicy method.
public LogStream ConfigureRotatingPolicy(long maximumSize, TimeSpan dueTime)Parameters #
maximumSize long
The non-negative size threshold of the log file size in byte count.
dueTime TimeSpan
The time interval between checks.
Returns #
Remarks #
The first run is performed immediately after calling this method.
ConfigureRotatingPolicy(long, TimeSpan, RotatingLogPolicyCompressor) #
Defines the time interval, size threshold, and compression strategy for starting the task, and then starts the task.
public LogStream ConfigureRotatingPolicy(long maximumSize, TimeSpan dueTime, RotatingLogPolicyCompressor compressor)Parameters #
maximumSize long
The non-negative size threshold of the log file size in byte count.
dueTime TimeSpan
The time interval between checks.
compressor RotatingLogPolicyCompressor
The compression strategy to apply when rotating logs.
Returns #
The current LogStream instance for method chaining.
Remarks #
The first run is performed immediately after calling this method.