Sisk

Class

RotatingLogPolicy

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

Provides a managed utility for rotating log files by their file size.

C#
public sealed class RotatingLogPolicy : IDisposable

Inheritance #

object ← RotatingLogPolicy

Implements #

IDisposable

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
RotatingLogPolicy(LogStream)Creates an new RotatingLogPolicy instance with the given LogStream object to watch.

Properties #

NameDescription
CompressorGets or sets the compressor used to compress the log files.
DueGets the time interval between checks.
MaximumSizeGets the file size threshold in bytes for when the file will be compressed and then cleared.

Methods #

NameDescription
Configure(long, TimeSpan, RotatingLogPolicyCompressor?)Defines the time interval and size threshold for starting the task, and then starts the task.
Dispose()

Type to search the documentation and the API reference.