Sisk

Method

RotatingLogPolicy.Configure

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

Configure(long, TimeSpan, RotatingLogPolicyCompressor?) #

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

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

Type to search the documentation and the API reference.