Use Logging Crate To Avoid STDOUT Spam #5

Merged
seb merged 1 commit from 03/logging into main 2025-07-07 12:45:34 -06:00
Owner

adds a logging crate + simple_logger front-end with a log feature flag.

this prevents debug outputs from being printed with CLI operations.

to enable:
cargo build --release --features log

expected output example w/ logging enabled:

[03@aspen entomologist]$ ent list
2025-07-07T18:30:51.700Z DEBUG [entomologist::issues] ignoring unknown file in issues directory: "README.md"
2025-07-07T18:30:51.700Z DEBUG [entomologist::issues] ignoring unknown file in issues directory: ".git"
1ebdee0502937bf934bb0d72256dbdd1 add delete subcommand to delete ENTries (heh) (New)

to disable:
cargo build --release

expected output example w/ logging disabled:

[03@aspen entomologist]$ ent list
1ebdee0502937bf934bb0d72256dbdd1 add delete subcommand to delete ENTries (heh) (New)
adds a logging crate + simple_logger front-end with a `log` feature flag. this prevents debug outputs from being printed with CLI operations. to enable: `cargo build --release --features log` expected output example w/ logging enabled: ```log [03@aspen entomologist]$ ent list 2025-07-07T18:30:51.700Z DEBUG [entomologist::issues] ignoring unknown file in issues directory: "README.md" 2025-07-07T18:30:51.700Z DEBUG [entomologist::issues] ignoring unknown file in issues directory: ".git" 1ebdee0502937bf934bb0d72256dbdd1 add delete subcommand to delete ENTries (heh) (New) ``` to disable: `cargo build --release` expected output example w/ logging disabled: ```log [03@aspen entomologist]$ ent list 1ebdee0502937bf934bb0d72256dbdd1 add delete subcommand to delete ENTries (heh) (New) ```
sigil-03 added 1 commit 2025-07-07 12:33:50 -06:00
seb merged commit 343e43a762 into main 2025-07-07 12:45:34 -06:00
seb deleted branch 03/logging 2025-07-07 12:45:35 -06:00
Owner

Ah what a relief :-)

Ah what a relief :-)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: taproot-manufacturing/entomologist#5
No description provided.