3 releases (breaking)

0.2.0 May 20, 2024
0.1.0 Jan 14, 2024
0.0.0 Jan 3, 2023

#2085 in Embedded development

Download history 65/week @ 2024-07-20 70/week @ 2024-07-27 83/week @ 2024-08-03 66/week @ 2024-08-10 62/week @ 2024-08-17 32/week @ 2024-08-24 39/week @ 2024-08-31 36/week @ 2024-09-07 45/week @ 2024-09-14 65/week @ 2024-09-21 53/week @ 2024-09-28 28/week @ 2024-10-05 40/week @ 2024-10-12 33/week @ 2024-10-19 37/week @ 2024-10-26 46/week @ 2024-11-02

158 downloads per month

MIT/Apache

410KB
9K SLoC

embassy-usb-logger

USB implementation of the log crate. This logger can be used by any device that implements embassy-usb. When running, it will output all logging done through the log facade to the USB serial peripheral.

Usage

Add the following embassy task to your application. The Driver type is different depending on which HAL you use.

#[embassy_executor::task]
async fn logger_task(driver: Driver<'static, USB>) {
   embassy_usb_logger::run!(1024, log::LevelFilter::Info, driver);
}

Dependencies

~6.5MB
~119K SLoC