Feat: add in logger.

This commit is contained in:
Ian Rettig
2025-06-09 11:36:59 -04:00
parent 6af058de3b
commit 0117b99006
+3
View File
@@ -1,5 +1,6 @@
use anyhow::{Context, Result}; use anyhow::{Context, Result};
use clap::Parser; use clap::Parser;
use log::info;
// Search for a pattern in a file and display the lines that contain it. // Search for a pattern in a file and display the lines that contain it.
#[derive(Parser)] #[derive(Parser)]
@@ -9,6 +10,8 @@ struct Cli {
} }
fn main() -> Result<()> { fn main() -> Result<()> {
env_logger::init();
info!("starting up");
let args = Cli::parse(); let args = Cli::parse();
// let content = std::fs::read_to_string(&args.path).expect("Could not read file."); // let content = std::fs::read_to_string(&args.path).expect("Could not read file.");