diff --git a/src/main.rs b/src/main.rs index b962121..9a1d468 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,6 @@ use anyhow::{Context, Result}; use clap::Parser; +use log::info; // Search for a pattern in a file and display the lines that contain it. #[derive(Parser)] @@ -9,6 +10,8 @@ struct Cli { } fn main() -> Result<()> { + env_logger::init(); + info!("starting up"); let args = Cli::parse(); // let content = std::fs::read_to_string(&args.path).expect("Could not read file.");