Method 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(long, TimeSpan, RotatingLogPolicyCompressor?) of this defined RotatingPolicy method.
public LogStream ConfigureRotatingPolicy(long maximumSize, TimeSpan dueTime)
Parameters
maximumSizelongThe non-negative size threshold of the log file size in byte count.
dueTimeTimeSpanThe time interval between checks.
Returns
Remarks
The first run is performed immediately after calling this method.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語