Skip to content

Conditionally include subscriber #226

Open
@briankung

Description

@briankung

Per my reddit comment:

I guess the only other thing is to be able to subscribe to console with an attribute or something. I wanted to conditionally include the subscriber (maybe in debug profile?) but ended up doing something like if cfg!(features = my-custom-feature) { console_subscriber::init(); }. Not ideal and my exact feature request might not be something you'd want for everyone, but something along those lines might be nice.

Thanks for a great crate!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-subscriberCrate: console-subscriber.S-featureSeverity: feature. This is adding a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions