From e67a427dc3e6cd53530a2ebb604836a785c38320 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Sun, 3 Nov 2024 21:39:08 -0500 Subject: [PATCH] chore: Send log files to ~/.cache/bluebuild --- process/logging.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/process/logging.rs b/process/logging.rs index ec60e1d..005353c 100644 --- a/process/logging.rs +++ b/process/logging.rs @@ -47,8 +47,8 @@ pub struct Logger { impl Logger { const TRIGGER_FILE_SIZE: u64 = 10 * 1024; - const ARCHIVE_FILENAME_PATTERN: &'static str = "bluebuild-log.{}.log"; - const LOG_FILENAME: &'static str = "bluebuild-log.log"; + const ARCHIVE_FILENAME_PATTERN: &'static str = "bluebuild.{}.log"; + const LOG_FILENAME: &'static str = "bluebuild.log"; const LOG_FILE_COUNT: u32 = 4; #[must_use] @@ -88,7 +88,7 @@ impl Logger { pub fn init(&self) { let home = env::var("HOME").expect("$HOME should be defined"); let log_dir = self.log_dir.as_ref().map_or_else( - || Path::new(home.as_str()).join(".local/share/bluebuild"), + || Path::new(home.as_str()).join(".cache/bluebuild"), Clone::clone, );