Skip to content

Commit

Permalink
Merge pull request #139 from samu698/master
Browse files Browse the repository at this point in the history
Add builder() associated function to Config to make a ConfigBuilder
  • Loading branch information
Drakulix authored Oct 22, 2023
2 parents 2c98e48 + 47526a8 commit 4ef071d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
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 4ef071d

Please sign in to comment.