Skip to content

Need some way to enable "tokio=trace" filter for the console Layer only #76

Closed
@sbrocket

Description

@sbrocket

First off...this is super cool, thanks for creating it!

The requirement to enable trace-level events for tokio to use this console means that other layers also receive those events, which makes a fmt Layer pretty unusable without out-of-band filtering.

Per tokio-rs/tracing#302, it looks like per-layer filtering does not yet exist. Before I'd discovered that I'd tried combining separate EnvFilters with a fmt Layer and a console Layer using Layer::and_then, but this clearly doesn't work as expected.

Maybe there's another workaround I haven't thought of?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions