rust-cli / rust-cli/env_logger

error!(...) exit error

Open
#223 0 comments 0 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

There is a possibility to exit with error code if error!(...) macro is used?
Currently error!(...) simply prints the message: can we set a flag (maybe during building the logger) to exit with a status code different from 0?

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 examining the error!(...) macro and how the logger is built. Determine whether logger configuration can control process exit status without changing ordinary logging behavior. Done means the requested nonzero exit behavior is defined and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.