macro_rules! error {
($format_str:literal $(, $arg:expr)* $(,)?) => { ... };
([$($format_str:literal),+ $(,)?] $(, $arg:expr)* $(,)?) => { ... };
}Expand description
Like log::error, but bunt-compatible.
ยงExample
use bunt_logger::error;
let x = -1;
error!("{$red}Not a positive number:{/$} {[bold]}", x);