serverpod_logging_cli library

A cli_tools Logger bridge for the serverpod_logging architecture.

This package sits on top of serverpod_logging (the dependency-free core) and cli_tools (the CLI toolkit), wiring the two together. Keeping it in its own package means the logging core never takes on the cli_tools dependency, and the cli_tools toolkit never learns about serverpod.

Classes

ServerpodCliLogger
A cli.Logger that delegates to a Log.
StdOutLogWriter
A TextLogWriter that renders log lines through a cli.StdOutLogger, adding cli.LogType-aware formatting, ie. bullets, headers, boxes, Windows emoji replacements, etc.

Constants

logTypeKey → const String
Metadata key used to pass cli.LogType through LogEntry.metadata.

Functions

toCliLogLevel(LogLevel level) → LogLevel
Maps a LogLevel to the cli.LogLevel.