Skip to main content

Crate yog_logging

Crate yog_logging 

Source
Expand description

Yog logging — lightweight logging macros with a consistent [yog] format.

The macros forward to [log], which does the formatting. Because they expand to a single call that only formats its arguments when actually invoked, there is no cost at a call site that is compiled out or behind a disabled level.

yog_logging::info!("loaded {} mods", 3);
yog_logging::warn!("slow tick: {}ms", 51);
yog_logging::error!("failed: {}", "boom");

Macros§

error
Log at ERROR level.
info
Log at INFO level.
warn
Log at WARN level.

Enums§

Level
Severity of a log record.