Skip to content

Commit

Permalink
Add builder() associated function to Config to make a ConfigBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
samu698 committed Oct 21, 2023
1 parent 2c98e48 commit 47526a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config.rs
Expand Up @@ -91,6 +91,13 @@ pub struct Config {
pub(crate) enable_paris_formatting: bool,
}

impl Config {
/// Create a new default `ConfigBuilder`
pub fn builder() -> ConfigBuilder {
ConfigBuilder::new()
}
}

/// Builder for the Logger Configurations (`Config`)
///
/// All loggers print the message in the following form:
Expand Down

0 comments on commit 47526a8

Please sign in to comment.