LogWriter class abstract
Transport layer for log output. Implementations decide where logs go (terminal, database, VM service, TUI, etc.).
Use MultiLogWriter to fan out to multiple writers.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Releases any resources held by the writer.
-
closeScope(
LogScope scope, {required bool success, required Duration duration, Object? error, StackTrace? stackTrace}) → Future< void> - Ends a scoped operation.
-
log(
LogEntry entry) → Future< void> - Writes a single log entry.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openScope(
LogScope scope) → Future< void> - Begins a scoped operation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited