rust-cli / rust-cli/env_logger

[feat] support star matching

Open
#315 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
1.1k
Forks
149
Avg merge
2h 42m
Merged PRs (30d)
4

Description

https://nodejs.org/docs/latest/api/util.html#utildebuglogsection-callback

env NODE_DEBUG=foo* is able to match section foo-bar


Would be nice to have star matching, instead of literal matching.

For example, if one named john, he may set all his packages log level to debug using

RUST_LOG=john_*=debug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how env_logger parses RUST_LOG directives and performs section matching. Add tests for wildcard patterns such as john_*=debug matching john_foo while preserving literal matching behavior; done when the requested star matching works without affecting unrelated sections.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.