Table of Contents

Method ConfigureRotatingPolicy

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

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 long

The non-negative size threshold of the log file size in byte count.

dueTime TimeSpan

The time interval between checks.

Returns

LogStream

Remarks

The first run is performed immediately after calling this method.