Added logging functionality via log4rs crate
All checks were successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
2022-09-01 16:16:27 -04:00
parent 23288ac043
commit 70e2b29121
5 changed files with 28 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
use log4rs;
use config::Config;
use repository::Repository;
use transcoder::Transcoder;
@@ -7,6 +8,9 @@ mod repository;
mod transcoder;
fn main() {
// initialize the log4rs logger
log4rs::init_file("./log4rs.yaml", Default::default()).unwrap();
// create and initialize our config and repository objects
let c: Config = Config::new("~/.config/adept.toml");
let r: Repository = Repository::new(&c.get_repository());