rust-cli / rust-cli/env_logger

Space left after level

Open
#224 7 comments 5 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.