browser logging env filter - configure log filters by package #3888
johnny-smitherson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's often that we pull some dependency that spams the logs at warning level. In current dioxus logger implementation, customization of tracing env filters only works on the server using
RUST_LOG
env var. But it's not possible to do this on the browser as thedioxus::logger::init
method does not expose env filter customization.I found that on wasm filters can be passed in with:
And the logs are filtered according to the rule.
#3774 (comment)
in action:
Do you think this
init_with_env_filter
or something similar would be added to upstream ?Beta Was this translation helpful? Give feedback.
All reactions