67 releases

new 0.1.68 Jan 7, 2026
0.1.67 Dec 15, 2025
0.1.66 Oct 6, 2025
0.1.65 May 11, 2025
0.1.21 Nov 26, 2022

#810 in Embedded development

Download history 74/week @ 2025-09-17 126/week @ 2025-09-24 327/week @ 2025-10-01 48/week @ 2025-10-08 57/week @ 2025-10-15 56/week @ 2025-10-22 43/week @ 2025-10-29 71/week @ 2025-11-05 67/week @ 2025-11-12 237/week @ 2025-11-19 175/week @ 2025-11-26 509/week @ 2025-12-03 54/week @ 2025-12-10 173/week @ 2025-12-17 45/week @ 2025-12-24 128/week @ 2025-12-31

405 downloads per month
Used in 8 crates (7 directly)

MIT/Apache

265KB
5.5K SLoC

Xous API: Log

API calls to access the Xous logging service. Provides glue between the log crate, the Xous kernel and the hardware.

Every process that relies on the logging service should call xous_api_log::init_wait() before using any log calls.

Below is a minimal example of how to use the logging service.

fn main() -> ! {
    xous_api_log::init_wait().unwrap();
    log::set_max_level(log::LevelFilter::Info);
    log::info!("my PID is {}", xous::process::id());

    let timeout = std::time::Duration::from_millis(1000);
    let mut count = 0;
    loop {
        log::info!("test loop {}", count);
        count += 1;
        std::thread::sleep(timeout);
    }
}

Dependencies

~2.7–3.5MB
~72K SLoC