Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make method env_var_name public #3009

Open
LucDrenth opened this issue Jun 17, 2024 · 1 comment
Open

Make method env_var_name public #3009

LucDrenth opened this issue Jun 17, 2024 · 1 comment

Comments

@LucDrenth
Copy link

LucDrenth commented Jun 17, 2024

Feature Request

I would like to make tracing-subscriber/src/filter/env/builder.rs::env_var_name a public method.

Crates

tracing-subscriber

Motivation

I would like to use the builder and check if there is an environment variable set. This requests comes from the following Bevy engine issue: bevyengine/bevy#13897

Proposal

Make the method public.

Alternatives

I can use EnvFilter::DEFAULT_ENV since that is expoed but then I can not use the builder its env property. I can avoid using the builder as a workaround but that is not ideal since it would require me to duplicate code.

@alice-i-cecile
Copy link

Make tracing-subscriber/src/filter/env/builder.rs::env_var_name a public method. I would like to

Sentence fragment here :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants