devtools icon indicating copy to clipboard operation
devtools copied to clipboard

[feature] (Pre)filter logs

Open bicarlsen opened this issue 9 months ago • 2 comments

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

  1. Crashes the devtools web UI
  2. 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(...).

bicarlsen avatar Feb 28 '25 04:02 bicarlsen

I like the filter idea

denjell-crabnebula avatar Feb 28 '25 14:02 denjell-crabnebula

linear's auto closing "feature" is quite annoying tbh - it reminds me of those "This issue is looking stale" kinda bot comments.

FabianLars-crabnebula avatar Aug 29 '25 21:08 FabianLars-crabnebula