Skip to content

suggestion: Make directives public in env_filter #367

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

Open
AdamGS opened this issue May 7, 2025 · 1 comment
Open

suggestion: Make directives public in env_filter #367

AdamGS opened this issue May 7, 2025 · 1 comment

Comments

@AdamGS
Copy link

AdamGS commented May 7, 2025

My use case is using env_filter to configure another logger (pyo3_log). Right now I can only use the top-level filter but if I could access each directive in the Filter instance, it would be trivial to use it in every logger that doesn't have its own utility to parse standard directives.

If the maintainers think this is a good idea, I'm glad to do the actual work.

@epage
Copy link
Contributor

epage commented May 7, 2025

Could you help me understand why you need access to the individual built directives, rather than using env_filter::Filter to do the filtering within your logger?

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