microsoft / microsoft/winget-cli

Ability to log command sequences

Open
#1,941 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

Currently, each command that is run is put into a separate log file. I would like the ability to log multiple commands to a single file. There are times when it is helpful to have the output of two or more commands which are run consecutively, and if they are in different files it is annoying to have to switch between them.

Proposed technical implementation details

Add a --append-logs switch to append the log output to the previous log file instead of creating a new file

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 command-line option handling and the code that creates per-command log files. Trace how consecutive commands select their log output, then define the behavior of --append-logs, including when a new sequence begins. Done means consecutive command output is written to one file when the switch is used while existing separate-file behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
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.