microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.37k stars 1.45k forks source link

Add ODS logger and use it during init #4969

Closed JohnMcPMS closed 1 week ago

JohnMcPMS commented 1 week ago

Change

The user settings (and then group policy) initialization happen before we get the file logger set up. To be able to see into what is happening there more easily, this change creates a logger that uses OutputDebugString and uses it during the initial file logger creation.

Validation

Debugged and saw the group policy and settings logging come through the output.

Microsoft Reviewers: Open in CodeFlow