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) of this defined RotatingPolicy method.
public LogStream ConfigureRotatingPolicy(long maximumSize, TimeSpan dueTime)
Parameters
maximumSize
longThe non-negative size threshold of the log file size in byte count.
dueTime
TimeSpanThe time interval between checks.
Returns
Remarks
The first run is performed immediately after calling this method.