Crates.io | irox-log |
lib.rs | irox-log |
version | 0.2.0 |
source | src |
created_at | 2023-11-05 17:36:42.592336 |
updated_at | 2024-01-13 19:46:07.489554 |
description | Basic console and file logging |
homepage | https://github.com/spmadden/irox |
repository | https://github.com/spmadden/irox |
max_upload_size | |
id | 1026103 |
size | 12,456 |
Basic console and file 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!");
}