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.Loggerthat delegates to aLog. - StdOutLogWriter
-
A
TextLogWriterthat renders log lines through acli.StdOutLogger, addingcli.LogType-aware formatting, ie. bullets, headers, boxes, Windows emoji replacements, etc.
Constants
- logTypeKey → const String
-
Metadata key used to pass
cli.LogTypethroughLogEntry.metadata.
Functions
-
toCliLogLevel(
LogLevel level) → LogLevel -
Maps a
LogLevelto thecli.LogLevel.