Embassy
embassy-usb-logger

Crates

git

Versions

default

Flavors

Macro embassy_usb_logger::with_class

source ·
macro_rules! with_class {
    ( $x:expr, $l:expr, $p:ident ) => { ... };
}
Expand description

Initialize the USB serial logger from a serial class and return the future to run it.

Arguments specify the buffer size, log level and the serial class, respectively.

§Usage

embassy_usb_logger::with_class!(1024, log::LevelFilter::Info, class);

§Safety

This macro should only be invoked only once since it is setting the global logging state of the application.