Skip to main content

debug_and_log_error

Macro debug_and_log_error 

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

Emit a message to both the custom debug log (at Error level) and the standard log crate at log::error! level.

§Example

debug_and_log_error!("SCRIPT", "Script '{}' failed: {}", name, e);