Skip to content

Commit

Permalink
Merge pull request #40 from baoyachi/issue/38
Browse files Browse the repository at this point in the history
fix build
  • Loading branch information
baoyachi authored Sep 12, 2024
2 parents 3fe2e30 + 4cd3000 commit 1ad827c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "1.8.0"
version = "1.8.1"
edition = "2021"
authors = ["baoyachi <[email protected]>"]
description = "A simple log. It's really simple use"
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ impl LogConfigBuilder {
self
}

pub fn directory<S: Into<String>>(mut self, directory: S) -> LogConfigBuilder {
self.0.directory = Some(directory.into());
self
}

pub fn level<S: Into<String>>(mut self, level: S) -> LogConfigBuilder {
self.0.level = level.into();
self
Expand Down

0 comments on commit 1ad827c

Please sign in to comment.