changed log's output dir

This commit is contained in:
alex 2025-10-22 21:31:47 +08:00
parent a5535d66f3
commit b58b18d9c3

View File

@ -1,5 +1,8 @@
use tracing_appender::non_blocking::WorkerGuard; use tracing_appender::non_blocking::WorkerGuard;
pub fn init_log() -> WorkerGuard { pub fn init_log(output_dir: &str) -> WorkerGuard {
rolling_file::default(true, true, tracing::Level::DEBUG) rolling_file::default_with_output_dir(output_dir, true, true, tracing::Level::DEBUG)
// rolling_file::default(true, true, tracing::Level::DEBUG)
} }