Simple Logger level



examples/logging/simple_logger_init_with_level/src/main.rs
fn main() {
    simple_logger::init_with_level(log::Level::Info).unwrap();

    log::trace!("This is a sample trace.");
    log::debug!("This is a sample debug.");
    log::info!("This is a sample info.");
    log::warn!("This is a sample warn.");
    log::error!("This is a sample error.");
}

2024-08-04T12:12:25.438Z INFO  [simple_logger_init_with_level] This is a sample info.
2024-08-04T12:12:25.438Z WARN  [simple_logger_init_with_level] This is a sample warn.
2024-08-04T12:12:25.438Z ERROR [simple_logger_init_with_level] This is a sample error.