Crates.io | embassy-usb-logger |
lib.rs | embassy-usb-logger |
version | 0.2.0 |
source | src |
created_at | 2023-01-03 19:05:34.915646 |
updated_at | 2024-05-20 13:51:32.924436 |
description | `log` implementation for USB serial using `embassy-usb`. |
homepage | |
repository | https://github.com/embassy-rs/embassy |
max_upload_size | |
id | 750339 |
size | 10,529 |
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);
}