Expand description
Safe, ergonomic logging facilities for cFS.
§System log and console
The [log!] and [printf!] macros write to the cFE System Log
and the OSAL console, respectively.
§Event Services (EVS)
The [info!], [warn!], and [err!] macros send EVS events
with println!-like formatting. The event ID is derived from
the source line number automatically.
ⓘ
info!("system nominal")?;
warn!("temperature high: {} C", temp)?;
err!("{} failed", subsystem)?;Constants§
- EVS_
MAX_ MSG_ SIZE - The maximum formatted EVS message size, from cFE mission config.
- MAX_
PRINTF_ MSG_ SIZE - The maximum size of a single
OS_printfmessage, from OSAL configuration. - SYSLOG_
MAX_ MSG_ SIZE - The maximum size of a single cFE System Log message, from cFE configuration.
Functions§
- printf
- Writes a message string to the OSAL console (
OS_printf). - printf_
disable - Disables output from the
printf!macro and the underlyingOS_printffunction. - printf_
enable - Enables output from the
printf!macro and the underlyingOS_printffunction. - syslog
- Writes a message to the cFE system log.