[][src]Function drone_core::log::write_fmt

pub fn write_fmt(port: u8, args: Arguments<'_>)

Writes args to the log port number port.

The presence of the debug probe is not checked, so it is recommended to use this function together with Port::is_enabled.

Examples

use drone_core::{log, log::Port};

let a = 0;

if Port::new(11).is_enabled() {
    log::write_fmt(11, format_args!("a = {}\n", a));
}