Macro fatal
macro_rules! fatal {
($body:literal) => { ... };
($body:literal, $($attribute:tt)+) => { ... };
}
Expand description
Logs a fatal-level message.
Fatal messages indicate critical errors that will likely cause the program to terminate or become unusable.
ยงExamples
Simple fatal message:
use veecle_telemetry::fatal;
fatal!("Critical system failure");
Fatal error with context:
use veecle_telemetry::fatal;
let component = "memory_allocator";
let error_type = "out_of_memory";
fatal!(
"System component failure",
component = component,
error_type = error_type,
"available_memory_mb" = 0
);