mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move some functions to Cli struct (#3961)
This commit is contained in:
@ -11,5 +11,5 @@ description = "tracing helpers"
|
||||
[dependencies]
|
||||
tracing.workspace = true
|
||||
tracing-subscriber = { version = "0.3", default-features = false, features = ["env-filter", "fmt"] }
|
||||
tracing-appender = "0.2"
|
||||
tracing-appender.workspace = true
|
||||
tracing-journald = "0.3"
|
||||
|
||||
@ -68,6 +68,7 @@ where
|
||||
///
|
||||
/// The boxed layer and a guard is returned. When the guard is dropped the buffer for the log
|
||||
/// file is immediately flushed to disk. Any events after the guard is dropped may be missed.
|
||||
#[must_use = "tracing guard must be kept alive to flush events to disk"]
|
||||
pub fn file<S>(
|
||||
filter: EnvFilter,
|
||||
dir: impl AsRef<Path>,
|
||||
|
||||
Reference in New Issue
Block a user