Class
RotatingLogPolicy
Provides a managed utility for rotating log files by their file size.
public sealed class RotatingLogPolicy : IDisposableInheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| RotatingLogPolicy(LogStream) | Creates an new RotatingLogPolicy instance with the given LogStream object to watch. |
Properties #
| Name | Description |
|---|---|
| Compressor | Gets or sets the compressor used to compress the log files. |
| Due | Gets the time interval between checks. |
| MaximumSize | Gets the file size threshold in bytes for when the file will be compressed and then cleared. |
Methods #
| Name | Description |
|---|---|
| Configure(long, TimeSpan, RotatingLogPolicyCompressor?) | Defines the time interval and size threshold for starting the task, and then starts the task. |
| Dispose() |