embassy/embassy-usb-logger
2024-05-29 12:09:55 +02:00
..
src usb: remove device_descriptor buffer, store bytes in UsbDevice.inner instead 2024-03-23 00:35:15 +00:00
Cargo.toml Prepare for embassy-sync 0.6.0 release 2024-05-29 12:09:55 +02:00
CHANGELOG.md Add a CHANGELOG to embassy-usb-logger and bump its version 2024-05-20 14:25:32 +01:00
README.md Centralize license and MSRV boilerplate into the repo readme. 2024-01-11 18:18:35 +01:00

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);
}