spruce/line
Compact single-line message composition.
A Line wraps a main message with an optional timestamp, severity, scope,
and key-value details, rendered to one styled line via render. Build one
with new and the combinators in this module.
Types
Values
pub fn details(line: Line, details: details.Details) -> Line
Add key-value details after the main text.
pub fn severity(line: Line, severity: severity.Severity) -> Line
Add a generic severity/status prefix.
pub fn severity_formatter(
line: Line,
formatter: severity.Formatter,
) -> Line
Override the severity formatter.