Function drone_core::log::write_str[][src]

pub fn write_str(port: u8, string: &str)

Writes string 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};

if Port::new(11).is_enabled() {
    log::write_str(11, "hello there!\n");
}