We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6878d8d commit f22f286Copy full SHA for f22f286
tracing-subscriber/src/filter/env/mod.rs
@@ -449,6 +449,11 @@ impl EnvFilter {
449
/// # Ok(())
450
/// # }
451
/// ```
452
+ /// In the above example, substitute `my_crate`, `module`, etc. with the
453
+ /// name your target crate/module is imported with. This might be
454
+ /// different from the package name in Cargo.toml (`-` is replaced by `_`).
455
+ /// Example, if the package name in your Cargo.toml is `MY-FANCY-LIB`, then
456
+ /// the corresponding Rust identifier would be `MY_FANCY_LIB`:
457
pub fn add_directive(mut self, mut directive: Directive) -> Self {
458
if !self.regex {
459
directive.deregexify();
0 commit comments