From 44116fd9d5003f4aa041b72491e26356ed47b924 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') 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