Skip to content

Help menu: "Open Log Folder" + surface log path in error UI #873

@erikdarlingdata

Description

@erikdarlingdata

Background

Troubleshooting #857 required OCR'ing screenshots to get the exact SQL error number and message, because the error UI surfaces text the user can't copy and users don't know where the log file lives (%LocalAppData%\PerformanceMonitorLite\logs\).

AppLogger.Error already captures full SQL error detail — RemoteCollectorService.cs:423 formats SQL Error #{ex.Number}: {ex.Message} and includes inner exceptions and stack traces. The data is there; it's just hard to get to.

Proposed changes

  1. Help menu → Open Log Folder — opens %LocalAppData%\PerformanceMonitorLite\logs\ in Explorer. One click to the artifact we actually need for bug reports.
  2. Copy button / selectable text on the Live Snapshot error indicator — currently the error is a non-selectable TextBlock (ServerTab.xaml.cs:5320).
  3. Collection Health: "Last error" column copy + log path hint — tooltip or context menu item on permission-denied / failing collectors that links to the log folder.

Nice-to-have: Help menu → Generate Diagnostic Report that zips the latest log, a redacted copy of connections.json (no credentials), and the detected server metadata (edition, version, tier) into one file for GitHub issues.

Out of scope for this issue

Changing log file format, log verbosity, or adding new log sinks. Just exposing what we already write.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions