Skip to content

EnvFilter could implement Clone #2360

@jamesmunns

Description

@jamesmunns

Feature Request

Crates

tracing-subscriber

Motivation

As of clap v4, there is now a Clone requirement on some part of the parse machinery. This means that trying to take/parse an EnvFilter does not work, as it does not fulfill the Clone bound

Proposal

Add the Clone bound to EnvFilter, or provide a type that does, which can be used with Clap.

Alternatives

Provide some other documented way of taking tracing Filter directives from Clap and other similar tools

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