Skip to content

EnvFilter does not implement Filter #1868

Closed
@lilyball

Description

@lilyball

Bug Report

Version

tracing-subscriber v0.3.7

Crates

tracing-subscriber

Description

tracing_subscriber::layer::Filter is implemented for most various filter-like things I can think of, including LevelFilter, Targets, FilterFn, DynFilterFn, and the new combinators. But what is notably missing from this list is EnvFilter. I can apply a filter on top of EnvFilter using <EnvFilter as Layer>::with_filter(), but I can't apply an EnvFilter on top of an existing filter. This is a weird limitation and feels like a simple oversight.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/subscriberRelated to the `tracing-subscriber` cratekind/featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions