LogOutput class abstract

Interface for log output backends.

Implementations receive filtered log records from LogController.

For synchronous outputs (console, ring buffer), override write. For asynchronous outputs (database, HTTP), override writeAsync. The default writeAsync delegates to write.

Implementers

Constructors

LogOutput()

Properties

hashCode → int
The hash code for this object.
no setterinherited
isAsync → bool
Whether this output uses async writing.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopeFilter → String?
Optional scope filter. If non-null, this output only receives records whose scope starts with this prefix.
no setter

Methods

dispose() → void
Clean up resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(LogRecord record) → void
Write a log record synchronously.
writeAsync(LogRecord record) → Future<void>
Write a log record asynchronously.

Operators

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