From 8c2b7ebe1e98b88ddbb07a68dc8e54b7c5047379 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 15 Apr 2021 23:03:58 +0300 Subject: Switch over to big boy logging --- src/bin/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bin') diff --git a/src/bin/main.rs b/src/bin/main.rs index 8b61e5c..882fdc6 100644 --- a/src/bin/main.rs +++ b/src/bin/main.rs @@ -10,11 +10,10 @@ use gradecoin::schema::create_database; #[tokio::main] async fn main() { // Show debug logs by default by setting `RUST_LOG=gradecoin=debug` - // TODO: write logs to file? <13-04-21, yigit> // if env::var_os("RUST_LOG").is_none() { env::set_var("RUST_LOG", "gradecoin=debug"); } - pretty_env_logger::init(); + log4rs::init_file("log.conf.yml", Default::default()).unwrap(); let db = create_database(); -- cgit v1.2.3-70-g09d2