Skip to main content

Module logger

Module logger 

Source
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§

ConsoleLogger
tracing-backed logger. Debug output is suppressed when is_production is true.
MonitorLogger
Structured logger that currently delegates to ConsoleLogger.
TimeEvent
A named duration measurement. The duration is reported when TimeEvent::end runs.

Traits§

ILogger
Logging interface with leveled async logging plus timed events.