Relates to: #878 (comment)
After migrating from the log to the tracing crate, we can now easily support multiple formats for logging.
@da2ce7 has proposed these 4 styles:
#[derive(Debug)]
pub enum TraceStyle {
Default,
Pretty(bool),
Compact,
Json,
}
That is already included in the code, but it's hardcoded to the TraceStyle::Default value. It's not possible to change it from the configuration.
@da2ce7 also proposes these changes in the TOML config file:
Current:
[logging]
threshold = "info"
New:
[logging]
trace_filter = "info"
trace_style = "full"
trace_filter replaces threshold option in the current version.
Note (2026-07-14): The original issue description referenced log_level as the current field name, but it was renamed to threshold in commit 287e484 (feat!: [#958] improve metadata in config files). The spec at docs/issues/drafts/configuration-overhaul-889-logging-style.md has been updated accordingly.
Relates to: #878 (comment)
After migrating from the
logto thetracingcrate, we can now easily support multiple formats for logging.@da2ce7 has proposed these 4 styles:
That is already included in the code, but it's hardcoded to the
TraceStyle::Defaultvalue. It's not possible to change it from the configuration.@da2ce7 also proposes these changes in the TOML config file:
Current:
New:
trace_filterreplacesthresholdoption in the current version.