5 releases

0.2.0 Jan 13, 2024
0.1.3 Dec 25, 2023
0.1.2 Dec 14, 2023
0.1.1 Nov 29, 2023
0.1.0 Nov 5, 2023

#472 in Debugging

41 downloads per month
Used in 4 crates

MIT/Apache

295KB
7K SLoC

IROX-LOG

Basic console and file logging

Examples

Console Logging:

use irox_log::{init_console_level};
use log::{Level, info};

pub fn main() {
    // With 'Info' specified, 'Error', 'Warn' and 'Info' will be printed, but 'Debug' and 'Trace' will not.
    irox_log::init_console_level(Level::Info);

    info!("it works!");
}

lib.rs:

Basic console and file logging.

Dependencies

~0.5–1MB
~23K SLoC