Ability to Choose Format Used for Logging via CLI Flag
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start at the git-xargs CLI command and trace how command execution logs are currently produced. Clarify whether the work covers only --log-format or also --log-file and --log-file-isolation, then define completion around the requested text/JSON output and repository-specific log files.
Written by the indexing model from the issue text.
Description
Describe Solution You'd Like
Ideally you should be able to pass a flag to the git-xargs CLI command which indicates what format you'd like to use for the logs that are output by the command execution -- For example:
# For JSON Logs...
git-xargs --repo gruntwork-io/cloud-nuke \
--repo gruntwork-io/terraform-aws-eks \
--branch-name my-branch \
--log-format=json
/usr/local/bin/my-bash-script.sh
Or...
# For Default/Current Behavior...
git-xargs --repo gruntwork-io/cloud-nuke \
--repo gruntwork-io/terraform-aws-eks \
--branch-name my-branch \
--log-format=text
/usr/local/bin/my-bash-script.sh
Would also be really useful if there was a way to specify other logging-related behaviors as well, for things like:
-
--log-file=my-script-results: Which could take the file system path you wish to output your logs to AND still enable printing stdout/stderr (so you don't need to pipe things toteeto achieve that type of behavior) -
--log-file-isolation: As a boolean flag that, when enabled & a--log-fileis provided, would output the results of the command's execution in an isolated log file PER repo, something like:
my-script-results__summary.log # <- the overall execution summary across all repos
my-script-results__repo-a.log # <-- repo-specific logs for execution of targeted script
my-script-results__repo-b.log
my-script-results__repo-c.log
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 75
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing 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.
More from gruntwork-io/git-xargs
-
Able to change commit message depending on repo?May be free again @ZachGoldberg claimed this 429 days ago, and no pull request is open. Openenhancement
gruntwork-io/git-xargs#175 · 1 assignee ·
-
provide an environment variable with the temp directory namePossibly taken @jeff350 claimed this 1025 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
gruntwork-io/git-xargs#146 · 3 comments · 1 reaction ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 38/100
gruntwork-io/git-xargs#145 · 1 comment ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
gruntwork-io/git-xargs#143 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 42/100
gruntwork-io/git-xargs#134 · 5 reactions ·
All issues in gruntwork-io/git-xargs
Similar issues
-
BasicEventElement `messageBroker` is never returned on read (jsonb decoded into `sql.NullString`)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
eclipse-basyx/basyx-go-components#963 ·
Maintainers usually reply within 1 day
-
Area/Console Aspect/UI Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
wso2/agent-manager#2743 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day