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.
constfactory
- LogFileRotationPolicy.periodic(Duration period)
-
LogFileRotationPolicy.periodic creates a period based rotation policy.
constfactory
- LogFileRotationPolicy.sized(int maxSizeInBytes)
-
LogFileRotationPolicy.sized creates a size based rotation policy.
constfactory
-
LogFileRotationPolicy.union(Iterable<
LogFileRotationPolicy> policies) -
LogFileRotationPolicy.union combines multiple rotation policies into one.
File rotation occurs when any of the provided policies triggers.
constfactory
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
. Returnstrue
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