LogSink<T> class abstract base

Abstract base class for outputting logs to a destination.

Sinks define the final destination of log data, such as the system console, a local file, or a remote network endpoint.

Implementers

Constructors

LogSink({bool enabled = true})
Creates a LogSink.
const

Properties

enabled bool
Whether this sink is currently active.
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>
Performs cleanup, such as closing file handles or network connections.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
output(T data, LogEntry entry, LogLevel level, LogPipelineFactory factory) Future<void>
Outputs the data to the destination.
toString() String
A string representation of this object.
inherited

Operators

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