TomFileDiagnostics class

Appends structured events to a rolling file.

Implemented types

Constructors

TomFileDiagnostics({required String path, int maxBytes = 1 << 20, int generations = 3, TomDiagnosticLevel minimumLevel = TomDiagnosticLevel.info})

Properties

failure → Object?
Why this sink stopped writing, or null while it is working.
no setter
generations → int
How many files are kept, the live one included. Older ones are deleted, because "rolling" with no ceiling is unbounded growth wearing a different name.
final
hashCode → int
The hash code for this object.
no setterinherited
maxBytes → int
The size at which the current file is rotated. One mebibyte by default: large enough that an ordinary session never rotates, small enough that a bug report can carry the whole set.
final
minimumLevel ↔ TomDiagnosticLevel
Events at or above this level are written; the rest are dropped at the sink rather than at each call site.
getter/setter pair
path ↔ String
Where the live file is.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

log(TomDiagnosticEvent event) → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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