Macro red4ext_rs::log::error
source · macro_rules! error { ($env:expr, $($arg:tt)*) => { ... }; }
Expand description
Logs a message at the error level.
§Example
use red4ext_rs::{log, SdkEnv};
fn log_error(env: &SdkEnv) {
log::error!(env, "Hello, world!");
// log::error!("Hello, world!"); // if the `log` feature is enabled
}