diff --git a/Cargo.toml b/Cargo.toml index 8a1ee83..d638d35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,11 +28,11 @@ codegen-units = 1 anyhow = { version = "1.0" } clap = { version = "4.4.7", features = ["wrap_help", "derive", "color"] } clap-verbosity-flag = "2.1.0" +colored = "2" env_logger = "0.10" human-panic = "1.2.1" indicatif = "0.17" log = "0.4" -colored = "2" noodles-bam = "0.49.0" noodles-bgzf = "0.25" diff --git a/src/main.rs b/src/main.rs index bc30cc2..a377b83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ use clap::{Parser, Subcommand}; use env_logger::Builder; use human_panic::setup_panic; +use log::info; use log::LevelFilter; use std::path::PathBuf; @@ -41,11 +42,11 @@ fn main() { match cli.verbose.log_level() { Some(level) => { - println!("Verbose mode is on with level {}!", level); + info!("Verbose mode is on with level {}!", level); log_builder.filter(None, level.to_level_filter()); } None => { - println!("Verbose mode is off!"); + info!("Verbose mode is off!"); log_builder.filter(None, LevelFilter::Off); } } @@ -59,11 +60,11 @@ fn main() { input, isbam, }) => { - println!("'extract' {readids:?} from {input:?} "); + info!("'extract' {readids:?} from {input:?} "); extract::extract(readids, input, *isbam).unwrap(); } // If no subcommand was used, it's a normal top level command - None => println!("No subcommand was used"), + None => info!("No subcommand was used"), } }