rust-cli / rust-cli/env_logger
[feat] support star matching
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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