LogSink class abstract
Interface for log output destinations.
Implement this to route log records to files, crash reporters, remote backends, or any custom destination. Register sinks via LogPilotConfig.sinks.
class SentrySink implements LogSink {
@override
void onLog(LogPilotRecord record) {
Sentry.addBreadcrumb(Breadcrumb(
message: record.message,
level: _mapLevel(record.level),
));
}
}
- Implementers
Constructors
- LogSink()
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
-
dispose(
) → void - Release any resources held by this sink.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onLog(
LogPilotRecord record) → void - Called for every log record that passes the level and tag filters.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited