From 4cd3000e7fef2ec406b6e43608c8a8966d025af8 Mon Sep 17 00:00:00 2001 From: baoyachi Date: Thu, 12 Sep 2024 14:12:05 +0800 Subject: [PATCH] fix build --- Cargo.toml | 2 +- src/lib.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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