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
22.53k stars 1.39k forks source link

Initialize logging of global logger for inproc invocations #4490

Closed yao-msft closed 1 month ago

yao-msft commented 1 month ago

With Inproc invocation, logging was only enabled at context level (during an actual package operation). This change initializes the global logger for inproc invocations so package catalog, package search and package correlation can be logged too.

Manually validated logs exist after the change.

Microsoft Reviewers: Open in CodeFlow