spinframework / spinframework/spin
Implement global flag `--verbose`
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.5k
- Forks
- 310
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 24
Description
The Hippo CLI implements a global verbosity flag that increases the level of log verbosity:
This is then passed to env_logger to determine how verbose the CLI should present logs to the user:
This makes it incredibly simple to debug underlying issues with reqwest or other underlying libraries that use Rust's logging subsystem.
I'd love if there was an equivalent flag for Spin.
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 comparing the Hippo CLI implementation in src/cli/mod.rs, especially the global flag and env_logger setup linked in the issue, with Spin's CLI entry point and current logging initialization. Done means Spin accepts a global --verbose flag and passes its setting to the Rust logging subsystem so underlying library logs become more verbose.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100