rust-cli / rust-cli/env_logger
Space left after level
Open
Nobody has claimed this yet.
question
- Dominant language
- Rust
- Stars
- 1.1k
- Forks
- 149
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 4
Description
The default message format will print:
[2021-12-22T08:22:29Z TRACE mymodule] <message>
When disable the target (module), there is an extra space before the ].
[2021-12-22T08:19:55Z INFO ] <message>
^ here
Could this be fixed ?
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
Reproduce the default message format with the target module disabled, then search the formatter implementation for the code that assembles the level and target portions. The work is done when the closing bracket has no extra preceding space when the target is absent, while normal messages retain their existing format.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100