commit d5a056c2b6a70ff711877d7c895af1967a7d4f17
parent 13c9fd88b93ea1831a030003bce44d9b3ddae659
Author: triesap <tyson@radroots.org>
Date: Sun, 22 Mar 2026 20:17:07 +0000
logging: preserve prefixed shared log layout defaults
- set the new radroots-log file layout explicitly in runtime tracing
- keep net-core aligned with the existing prefixed daily filename behavior
- avoid breaking callers that construct logging options manually
- restore green shared logging validation after the canonical layout addition
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/crates/net-core/src/logging.rs b/crates/net-core/src/logging.rs
@@ -25,6 +25,7 @@ pub fn init_logging(opts: LoggingOptions) -> Result<()> {
file_name: opts.file_name.clone(),
stdout: opts.also_stdout,
default_level: None,
+ file_layout: radroots_log::LogFileLayout::PrefixedDate,
};
match radroots_log::init_logging(log_opts) {
Ok(()) => {}
diff --git a/crates/runtime/src/tracing.rs b/crates/runtime/src/tracing.rs
@@ -1,4 +1,4 @@
-use radroots_log::LoggingOptions;
+use radroots_log::{LogFileLayout, LoggingOptions};
use std::path::{Path, PathBuf};
use crate::error::RuntimeTracingError;
@@ -21,6 +21,7 @@ pub fn init_with(
file_name: env_file.unwrap_or_else(default_log_file_name),
stdout: true,
default_level: resolve_default_level(env_level, default_level),
+ file_layout: LogFileLayout::PrefixedDate,
};
radroots_log::init_logging(opts)?;
Ok(())