embassy/embassy-usb-logger
Ulf Lilleengen 1b20ba27b1 feat: bump embassy-sync version to 0.3.0
Update changelog in preparation for release
2023-09-14 18:26:00 +02:00
..
src Make usb-logger read and discard input data 2023-08-06 13:08:08 -07:00
Cargo.toml feat: bump embassy-sync version to 0.3.0 2023-09-14 18:26:00 +02:00
README.md docs: add missing README for usb-logger 2022-11-21 11:24:53 +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);
}