From bbd3453f360ad60eb4d81002b892b057c86d3e38 Mon Sep 17 00:00:00 2001 From: Serenity <1360359624@qq.com> Date: Sun, 20 Oct 2024 17:34:19 +0800 Subject: [PATCH] ref: log files are suffix for easier viewing (#433) --- easytier/src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/easytier/src/utils.rs b/easytier/src/utils.rs index 9aba0cf..31e3a56 100644 --- a/easytier/src/utils.rs +++ b/easytier/src/utils.rs @@ -194,6 +194,7 @@ pub fn init_logger( .rotation(tracing_appender::rolling::Rotation::DAILY) .max_log_files(5) .filename_prefix(file_config.file.unwrap_or("easytier".to_string())) + .filename_suffix("log") .build(file_config.dir.unwrap_or("./".to_string())) .with_context(|| "failed to initialize rolling file appender")?; file_layer = Some(