-
Notifications
You must be signed in to change notification settings - Fork 51
New config option for logging style #889
Copy link
Copy link
Open
Labels
Code Cleanup / RefactoringTidying and Making NeatTidying and Making NeatEnhancement / Feature RequestSomething NewSomething New
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Code Cleanup / RefactoringTidying and Making NeatTidying and Making NeatEnhancement / Feature RequestSomething NewSomething New