Skip to content

Log UI variant and environment info on startup#4752

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
ImproveApplicationLog
May 12, 2026
Merged

Log UI variant and environment info on startup#4752
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
ImproveApplicationLog

Conversation

@GabrielDuf
Copy link
Copy Markdown
Contributor

Summary

  • Adds a UI Framework: line and an environment block (OS, arch, runtime, elevated, packaged, args) to the startup log on both UI variants.
  • The Avalonia path was previously logging neither the textart banner nor any version/build info — it now mirrors the WinUI banner so bug reports from both variants look the same.
  • Adds a CoreTools.IsPackagedApp() helper (P/Invoke to GetCurrentPackageFullName) so we can distinguish MSIX vs unpackaged installs in logs.

Motivation: incoming bug reports often don't say which build the user is running, and there's no way to tell from the log. With this change, the first ~15 lines of every log file answer "WinUI or Avalonia, MSIX or portable, x64 or arm64, elevated or not, what args".

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit 90dad55 into main May 12, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the ImproveApplicationLog branch May 12, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants