XcodesOrg / XcodesOrg/xcodes

Add global verbose flag that prints more information about installation progress and errors

Open
#137 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Swift
Stars
4.8k
Forks
182
Avg merge
2d 12h
Merged PRs (30d)
1

Description

This should involve expanding Logging.log with different logging levels, like debug, info, warn and error. A global log level would determine which log messages were actually output. Increasing log levels would print fewer, higher-priority messages. The default log level would be info, and the current output should migrate to the info level.

A new global -v/--verbose flag would change the log level to debug. This should output more information, like network request headers and bodies, so that users can provide more meaningful bug reports and we can more easily troubleshoot issues.

Colors should be set for the warn and error levels in one place, instead of at each Logging.log call site. Errors should also be sent to STDERR instead of STDOUT.

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 locating the current Logging.log implementation and the command-line argument handling for global flags. Trace where installation progress, errors, and network requests are reported. Done means info is the default, -v/--verbose enables debug output, warn/error colors are centralized, and errors go to STDERR.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.