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

Native global log level filter #87

Open
mattias-p opened this issue Apr 13, 2022 · 0 comments
Open

Native global log level filter #87

mattias-p opened this issue Apr 13, 2022 · 0 comments

Comments

@mattias-p
Copy link

It would be really nice if Log::Any had its own global log level filter. So that messages were filtered before even being propagated to the adapters.

This way it would be convenient to just expose the Log::Any level names in your application's log level configuration interface. When requirements change for your application and you need to switch to a different log adapter, the migration experience would be much nicer.

Also, the Log::Any documentation advertises the ability to attach multiple adapters. If you do that today, you need to configure the level filters for all your adapters. And if the adapters have different sets of level names you need to do some busywork to get them in line with each other in your application. A single global level filter would be really nice in this situation too.

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

1 participant