55 releases

0.1.56 May 6, 2024
0.1.54 Feb 6, 2024
0.1.52 Dec 25, 2023
0.1.50 Oct 31, 2023
0.1.21 Nov 26, 2022

#354 in Hardware support

Download history 262/week @ 2024-01-22 301/week @ 2024-01-29 264/week @ 2024-02-05 245/week @ 2024-02-12 224/week @ 2024-02-19 368/week @ 2024-02-26 249/week @ 2024-03-04 340/week @ 2024-03-11 216/week @ 2024-03-18 120/week @ 2024-03-25 426/week @ 2024-04-01 128/week @ 2024-04-08 155/week @ 2024-04-15 180/week @ 2024-04-22 723/week @ 2024-04-29 292/week @ 2024-05-06

1,356 downloads per month
Used in 8 crates (7 directly)

MIT/Apache

260KB
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.5MB
~58K SLoC