Minor fixed #26 & #28

This commit is contained in:
Ara Sadoyan
2026-05-27 13:40:22 +02:00
parent e29161965f
commit 4734ccab2f
2 changed files with 4 additions and 3 deletions

View File

@@ -320,7 +320,8 @@ fn log_builder(conf: &AppConfig, location: &Option<String>) {
LevelFilter::Info
}
};
let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}{n}";
// let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}{n}";
let pattern = "{d(%Y-%m-%d %H:%M:%S)} {l} {t} - {m}\n";
if let Some(location) = location {
let file = FileAppender::builder().encoder(Box::new(PatternEncoder::new(pattern))).build(location).unwrap();
let config = Log4rsConfig::builder()