TuiLogWriter class
A LogWriter that routes log entries and scopes to the TUI state.
Before the TUI is ready, log entries are buffered and flushed once attach is called with the TuiAppStateHolder.
Scopes map to tracked operations with spinners. Log entries appear in the "Log Messages" tab.
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
-
attach(
TuiAppStateHolder< TuiState> holder) → void - Attach to the TUI state holder. Flushes any buffered messages.
-
close(
) → Future< void> -
Releases any resources held by the writer.
inherited
-
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