LogSink class abstract
Listens to log-streams and writes them to a destination.
This class is deprecated, use LogSinkMixin instead.
- Mixed-in types
- Implementers
- Annotations
-
- @Deprecated('Use LogSinkMixin instead')
Constructors
Properties
Methods
-
dispose(
) → Future< void> -
Cancels all subscriptions to log-streams and releases the resources of
this sink.
inherited
-
listenTo(
Stream< LogRecord> logStream) → void -
Starts listening for new log-records from the
logStream.inherited -
log(
LogRecord logRecord) → Future< void> -
Writes
logRecordto this sink, if filter allows it.inherited -
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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
LogRecord logRecord) → Future< void> -
Writes
logRecordto wherever this sink goes, without applying filter.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited