diff --git a/Cargo.toml b/Cargo.toml index 96ba429..d63f494 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "1.8.0" +version = "1.8.1" edition = "2021" authors = ["baoyachi "] description = "A simple log. It's really simple use" diff --git a/src/lib.rs b/src/lib.rs index e07606c..407d921 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -357,6 +357,11 @@ impl LogConfigBuilder { self } + pub fn directory>(mut self, directory: S) -> LogConfigBuilder { + self.0.directory = Some(directory.into()); + self + } + pub fn level>(mut self, level: S) -> LogConfigBuilder { self.0.level = level.into(); self