Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tracing-subscriber/src/filter/env/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ impl EnvFilter {
/// # Ok(())
/// # }
/// ```
/// In the above example, substitute `my_crate`, `module`, etc. with the
/// name your target crate/module is imported with. This might be
/// different from the package name in Cargo.toml (`-` is replaced by `_`).
/// Example, if the package name in your Cargo.toml is `MY-FANCY-LIB`, then
/// the corresponding Rust identifier would be `MY_FANCY_LIB`:
pub fn add_directive(mut self, mut directive: Directive) -> Self {
if !self.regex {
directive.deregexify();
Expand Down