Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New config option for logging style #889

Open
josecelano opened this issue Jun 10, 2024 · 0 comments
Open

New config option for logging style #889

josecelano opened this issue Jun 10, 2024 · 0 comments
Labels
Milestone

Comments

@josecelano
Copy link
Member

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::Deafult value. It's not possible to change it from the configuration.

@da2ce7 also proposes these changes in the TOML config file:

Current:

log_level = "info"

New:

trace_filter = "info"
trace_style = "full"

trace_filter replaces log_level option in the current version.

@josecelano josecelano added this to the v3.1.0 milestone Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant