Skip to main content

log

Macro log 

Source
macro_rules! log {
    ($level:expr, $($arg:tt)*) => { ... };
}
Expand description

Logs a message at the specified level.

This is the base logging macro.

ยงExample

log!(LogLevel::INFO, "Server started on port {}", 8080);