Skip to main content

error

Macro error 

Source
macro_rules! error {
    ($($args:tt)+) => { ... };
}
Available on crate feature std only.
Expand description

Emit a crate::Level::Error record. See log_at! for the syntax.

With the default flush policy the record is flushed to every sink before the macro returns.

ยงExamples

let err = std::io::Error::other("connection reset");
log_io::error!(logger, "request failed", error = log_io::Value::Error(&err));