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

Constructors

LogSink([LogFilter filter = const LogFilter.none()])
Creates a sink which writes the log-records filter allows through.

Properties

filter LogFilter
Decides which log-records make it to write.
final
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() 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 logRecord to 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 logRecord to wherever this sink goes, without applying filter.
inherited

Operators

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