A pluggable destination for formatted log output.
Implement this to redirect Datum's logs to any sink (a file, a crash
reporter, dart:developer, a test buffer…) without subclassing
DatumLogger. Pass your sink via DatumLogger(sink: MySink()).
The sink receives both the structured entry (for routing/filtering on
level, category, metadata) and the formatted string the logger produced.
- Implementers
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
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
LogEntry entry, String formatted) → void -
Writes a single, already-formatted log
entry.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited