From 47526a83dd5f53dc7fe83fceaf26e0a0e8137305 Mon Sep 17 00:00:00 2001 From: samu698 Date: Sat, 21 Oct 2023 18:20:38 +0200 Subject: [PATCH] Add builder() associated function to Config to make a ConfigBuilder --- src/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config.rs b/src/config.rs index 505d2211..5f5196ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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: