Skip to content

Commit 042463e

Browse files
Merge pull request #3703 from MicrosoftDocs/main638264203748762924sync_temp
For protected CLA branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 66213ce + 18bbdd7 commit 042463e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hub/package-manager/winget/troubleshooting.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,21 @@ Windows Package Manager by default creates log files when executing commands. Th
1818
> Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
1919
```
2020

21-
By navigating to this folder you will find the logs the *winget* tool has written.
21+
You can include the **--logs** or **--open-logs** option to any command to open the logs directory after the command completes. Here are some examples of using the **--logs** option:
22+
23+
```CMD
24+
> winget list --logs
25+
> winget source update --open-logs
26+
```
2227

2328
### --verbose-logs
2429

25-
If you need more comprehensive log files, that provide the complete communication with the CDNs and sources, include **--verbose-logs** on the command line as well. Here are some examples of using the **--verbose-logs** option:
30+
If you need more comprehensive log files, that provide the complete communication with the CDNs and sources, include **--verbose** or **--verbose-logs** on the command line as well. Here are some examples of using the **--verbose-logs** option:
2631

2732
```CMD
2833
> winget install vscode --verbose-logs
2934
> winget search -n visual --verbose-logs
30-
> winget source add -n mysource -t Microsoft.REST -a https://www.contoso.org --verbose-logs
35+
> winget source add -n mysource -t Microsoft.REST -a https://www.contoso.org --verbose
3136
```
3237

3338
## Known issues

0 commit comments

Comments
 (0)