Method
RotatingLogPolicy.Configure
Configure(long, TimeSpan, RotatingLogPolicyCompressor?) #
Defines the time interval and size threshold for starting the task, and then starts the task.
public void Configure(long maximumSize, TimeSpan due, RotatingLogPolicyCompressor? compressor = null)Parameters #
maximumSize long
The non-negative size threshold of the log file size in byte count.
due TimeSpan
The time interval between checks.
compressor RotatingLogPolicyCompressor?
The optional compressor to use for log file compression. If null, the default compressor (GZip) will be used.
Remarks #
The first run is performed immediately after calling this method.