Skip to main content

log_error

Macro log_error 

Source
macro_rules! log_error {
    ($app_tag:expr, $fmt:expr $(, $($arg:tt)*)?) => { ... };
}
Expand description

Logs an ERROR level message.

Error messages indicate failures that affect functionality. Color: Red (if colors are enabled)

§Parameters

  • app_tag - Category or module identifier
  • fmt - Format string
  • arg - Optional format arguments

§Examples

use osal_rs::log_error;
 
log_error!("FS", "Failed to open file");
log_error!("NET", "Connection timeout: {}", error);