Feat: add in logger.
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user