Sisk

Method

LogStream.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 of this defined RotatingPolicy method.

C#
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.

ConfigureRotatingPolicy(long, TimeSpan, RotatingLogPolicyCompressor) #

Defines the time interval, size threshold, and compression strategy for starting the task, and then starts the task.

C#
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 #

LogStream

The current LogStream instance for method chaining.

Remarks #

The first run is performed immediately after calling this method.

Type to search the documentation and the API reference.