From 8dbba5bb8c1eb7b4aefa8c38815820f8d14b1fdd Mon Sep 17 00:00:00 2001 From: skyline Date: Wed, 10 May 2023 00:25:40 +0200 Subject: [PATCH] log -> logs --- .gitignore | 2 +- src/behind/log.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d723697..1ee7960 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ /installer_build /.idea /nmap-bin -/log \ No newline at end of file +/logs \ No newline at end of file diff --git a/src/behind/log.rs b/src/behind/log.rs index ba744f0..9eaea56 100644 --- a/src/behind/log.rs +++ b/src/behind/log.rs @@ -10,7 +10,7 @@ pub(crate) fn log_init() { let now = Local::now(); let date = now.format("%Y-%m-%d").to_string(); - let filename = format!("log/execution-{}.log", date); + let filename = format!("logs/execution-{}.log", date); let logfile = FileAppender::builder() .encoder(Box::new(PatternEncoder::new("{d} {l} - {m}\n"))) @@ -26,6 +26,6 @@ pub(crate) fn log_init() { ) .unwrap(); // clear the log file on startup - std::fs::write(format!("log/execution-{}.log", date), "").unwrap(); + std::fs::write(format!("logs/execution-{}.log", date), "").unwrap(); log4rs::init_config(config).unwrap(); } \ No newline at end of file