log_io library

Log writers that depend on dart:io / dart:isolate and therefore do not work on the web. Import this in addition to package:serverpod_shared/serverpod_shared.dart when you need terminal-facing output or isolate-based writers.

Classes

ActiveScope
State for a single in-progress scope with a braille spinner.
IsolatedLogWriter
A LogWriter that wraps any LogWriter in a dedicated isolate.
IsolatedObject<T>
Wraps an object of type T in a dedicated isolate, allowing method calls to be forwarded via evaluate.
SpinnerLogWriter
A LogWriter base class that manages braille progress spinners.
TextLogWriter
A SpinnerLogWriter that writes formatted text to stdout/stderr.

Properties

isInteractiveTerminal bool
Whether stdout is an interactive terminal.
getter/setter pair

Functions

formatElapsed(Duration d) String
Format a duration for display in spinner/completion lines.

Typedefs

Factory<T> = FutureOr<T> Function()
Synchronous or asynchronous producer of a T. Used by IsolatedObject to create the wrapped object inside the child isolate.