macro_rules! note {
( $is_error:expr, $( $arg:tt )* ) => { ... };
}
Expand description
Log either an error or a warning, depending on some configuration parameter.
Invoking note!(is_error, ...)
is identical to invoking error!(...)
if is_error
is true
, or warn!(...)
if
is_error
is false
. This allows easily handling conditions whose handling depends on command line arguments or
other considerations.