Attribute Macro sfsm::sfsm_trace

source · []
#[sfsm_trace]
Expand description

Creates a wrapper around a log function to forward the logs to. With the help of sfsm_trace, a logger function to which all logs from the state machine are forwarded to can be configured

#[sfsm_trace]
fn trace(log: &str) {
    println!("{}", log);
}