Skip to content

Commit

Permalink
log -> logs
Browse files Browse the repository at this point in the history
  • Loading branch information
skyline69 committed May 9, 2023
1 parent b3d4283 commit 8dbba5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/installer_build
/.idea
/nmap-bin
/log
/logs
4 changes: 2 additions & 2 deletions src/behind/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand All @@ -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();
}

0 comments on commit 8dbba5b

Please sign in to comment.