Macro error
macro_rules! error {
($($args:tt)*) => { ... };
}Expand description
Logs an error-level message.
Error messages indicate serious problems that have occurred but allow the program to continue running.
ยงExamples
Simple error message:
use veecle_telemetry::error;
error!("Database connection failed");Error with details:
use veecle_telemetry::error;
let db_host = "localhost:5432";
let error_code = 1001;
error!(
"Database operation failed",
host = db_host,
error_code = error_code,
"retry_attempted" = true
);