Skip to main content

emit_info

Function emit_info 

Source
pub fn emit_info(category: &str, object: &str, message: &str)
Expand description

The single diagnostic vehicle, function form — for contexts that cannot use the Error!/Warn!/Info! macros because those are return-based (Error! escalates to Fatal!, which return Err(...)s, so it only typechecks in Result<_, error::Error> functions).

Perl LaTeXML has exactly one emission vehicle per severity (Error.pm), which is what lets its tally and cortex’s aggregation be lossless by construction. These functions restore that property for Rust’s non-Result contexts (post-processing drivers, workers, the LSP server): they count, emit with a proper category:object target, respect output suppression, and participate in the runaway circuit-breakers — everything the raw log::warn!-family calls they replace silently skipped. Raw log::*! diagnostics are BANNED in workspace crates (see tools/lint_raw_log_diag.sh); the logger backend’s own tally (note_status_from_logger) remains only as the net for FOREIGN crates logging through the log facade, which can never use this vehicle.