log_warning

Macro log_warning 

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

Logs a WARNING level message.

Warning messages indicate potential issues that don’t prevent operation. Color: Yellow (if colors are enabled)

§Parameters

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

§Examples

use osal_rs::log_warning;
 
log_warning!("MEM", "Memory usage above 80%");
log_warning!("SENSOR", "Temperature high: {} C", temp);