LogSinkMixin mixin
Listens to log-streams and writes them to a destination.
- Mixin applications
Properties
Methods
-
dispose(
) → Future< void> - Cancels all subscriptions to log-streams and releases the resources of this sink.
-
listenTo(
Stream< LogRecord> logStream) → void -
Starts listening for new log-records from the
logStream. -
log(
LogRecord logRecord) → Future< void> -
Writes
logRecordto this sink, if filter allows it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
Object error, StackTrace stackTrace) → void - Called when write fails or when a log-stream emits an error.
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
LogRecord logRecord) → Future< void> -
Writes
logRecordto wherever this sink goes, without applying filter.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited