LogFileRotationPolicy class abstract

LogFileRotationPolicy determines under what conditions the FileHandler should stop writing to the current log file and start writing to a new one.

Constructors

LogFileRotationPolicy.never()
LogFileRotationPolicy.never creates a never rotating policy.
const
factory
LogFileRotationPolicy.periodic(Duration period)
LogFileRotationPolicy.periodic creates a period based rotation policy.
const
factory
LogFileRotationPolicy.sized(int maxSizeInBytes)
LogFileRotationPolicy.sized creates a size based rotation policy.
const
factory
LogFileRotationPolicy.union(Iterable<LogFileRotationPolicy> policies)
LogFileRotationPolicy.union combines multiple rotation policies into one. File rotation occurs when any of the provided policies triggers.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRotate(LogFileStat stat) bool
Determines whether log files should be rotated based on the provided stat. Returns true if file rotation should occur, false otherwise.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited