Expand description
Logger trait, console logger, and timed events.
ILogger is the logging interface used across the framework.
ConsoleLogger is the tracing-backed implementation, MonitorLogger
delegates to it, and TimeEvent measures the duration of an operation.
ⓘ
let log = ConsoleLogger::global();
log.info("server started").await;
let timer = log.time("load config");
let elapsed = timer.end();Structs§
- Console
Logger tracing-backed logger. Debug output is suppressed whenis_productionis true.- Monitor
Logger - Structured logger that currently delegates to
ConsoleLogger. - Time
Event - A named duration measurement. The duration is reported when
TimeEvent::endruns.
Traits§
- ILogger
- Logging interface with leveled async logging plus timed events.