macro_rules! trace {
($($arg:tt)+) => { ... };
}
Expand description
Log a trace message using format string syntax
ยงExamples
use nonblocking_logger::{trace, trace_with, Logger};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let step = "validation";
// Using global logger
trace!("Entering {} step", step)?;
// Using specific logger
let logger = Logger::new().stdout();
trace_with!(logger, "Entering {} step", step)?;
Ok(())
}