Expand description
Tracing-based logging setup. Useful documentation: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/index.html#per-layer-filtering
Modulesยง
- test_
internal - Internal functionality used by the
#[traced_test]macro, repurposed for#[ctb_test]. - test_
subscriber
Structsยง
- LogEvent
Formatter ๐ - Custom event formatter. Creates a fresh timestamp per event. Avoids panics if span extensions are missing.
- MyVisitor ๐
Functionsยง
- build_
default_ ๐filter_ directives - Builds the filter directive string based on build configuration.
- create_
env_ ๐filter - Creates an
EnvFilterfrom eitherRUST_LOGor the default directives. Returns the filter and the directive string used. FIXME: It looks like only the directives variable here is actually used. - extract_
file_ ๐line - get_
file_ ๐writer_ layer - get_
mock_ ๐writer_ layer - get_
stderr_ ๐layer - setup_
logger