1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
mod filter_fn;
feature! {
#![all(feature = "env-filter", feature = "std")]
mod env;
pub use self::env::*;
}
feature! {
#![all(feature = "registry", feature = "std")]
mod layer_filters;
pub use self::layer_filters::*;
}
mod level;
pub use self::filter_fn::*;
pub use self::level::{LevelFilter, ParseError as LevelParseError};
#[cfg(not(all(feature = "registry", feature = "std")))]
pub(crate) use self::has_plf_stubs::*;
feature! {
#![any(feature = "std", feature = "alloc")]
pub mod targets;
pub use self::targets::Targets;
mod directive;
pub use self::directive::ParseError;
}
#[cfg(not(all(feature = "registry", feature = "std")))]
mod has_plf_stubs {
pub(crate) fn is_plf_downcast_marker(_: core::any::TypeId) -> bool {
false
}
pub(crate) fn subscriber_has_plf<S>(_: &S) -> bool
where
S: tracing_core::Subscriber,
{
false
}
pub(crate) fn layer_has_plf<L, S>(_: &L) -> bool
where
L: crate::Layer<S>,
S: tracing_core::Subscriber,
{
false
}
}