Add time crate for session log filename generation and refactor logging setup

- Introduced the `time` crate to generate session log filenames in UTC format, enhancing log file naming consistency.
- Refactored the logging setup to create log files based on the generated filenames, improving the clarity of log management.
- Updated the `compress_old_logs` function to streamline log file handling, ensuring proper cleanup of old logs.

These changes aim to improve the logging system's functionality and maintainability within the application.
This commit is contained in:
Joe 2026-03-01 14:22:20 -06:00
parent 491506fafd
commit 1f7682dfac
3 changed files with 113 additions and 72 deletions

1
Cargo.lock generated
View file

@ -251,6 +251,7 @@ dependencies = [
"tempfile",
"termcolor",
"thiserror 2.0.18",
"time 0.3.47",
"tokio",
"toml",
"tracing",