Skip to main content

errlog_sev_printf

Function errlog_sev_printf 

Source
pub fn errlog_sev_printf(severity: ErrlogSevEnum, message: &str) -> bool
Expand description

Emit a pre-formatted error message at the given severity, suppressed when severity is below the errlog_get_sev_to_log threshold.

C parity: errlogSevVprintf/errlogSevPrintf (errlog.c:366-389) — the C code prefixes "sevr=%s " and routes to the message queue. Here the prefix is preserved and the message is routed through tracing at a level mapped from the severity. Returns true when the message was emitted, false when suppressed by the threshold.