| Crates.io | embassy-usb-logger |
| lib.rs | embassy-usb-logger |
| version | 0.5.1 |
| created_at | 2023-01-03 19:05:34.915646+00 |
| updated_at | 2025-08-27 17:02:57.224427+00 |
| description | `log` implementation for USB serial using `embassy-usb`. |
| homepage | |
| repository | https://github.com/embassy-rs/embassy |
| max_upload_size | |
| id | 750339 |
| size | 24,179 |
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.
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);
}