Skip to content

[feature] (Pre)filter logs #363

@bicarlsen

Description

@bicarlsen

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(...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions