devtools
devtools copied to clipboard
[feature] (Pre)filter logs
It would be nice to be able to filter logs before they are written to the console. Perhaps this exists, but I couldn't find it in the docs.
Use case
I use SurrealDb as an embedded DB for my app. It outputs tons of logs (100's per second) which
- Crashes the
devtoolsweb UI - Obfuscates the logs I actually care about.
Ideas
It doesn't seem that devtools respects the RUST_LOG environment variable. I believe this would essentially solve the issue. Or, you could add a filtering mechanism to the plugin builder, e.g. devtools::init().with_filter(...).
I like the filter idea
linear's auto closing "feature" is quite annoying tbh - it reminds me of those "This issue is looking stale" kinda bot comments.