Skip to content

#PR4 Debug Logging#262

Open
diaverso wants to merge 1 commit into
Foxlider:masterfrom
diaverso:pr/4-logging
Open

#PR4 Debug Logging#262
diaverso wants to merge 1 commit into
Foxlider:masterfrom
diaverso:pr/4-logging

Conversation

@diaverso
Copy link
Copy Markdown

@diaverso diaverso commented May 15, 2026

⬆️ Previous: #PR3 Features

Adds an opt-in debug logging system to help diagnose issues during mod downloads and deployments.

FASTER/Models/Logger.cs (new):
Static Logger class that writes timestamped entries to %AppData%\FASTER\faster.log when the enableDebugLog setting is true. No-op when disabled.

Settings (Settings.settings / Settings.Designer.cs):
New enableDebugLog boolean setting (default: false).

Settings UI (Settings.xaml / Settings.xaml.cs):
New Enable Debug Logging checkbox and Open Log File button in Program Settings. Clicking Open Log File opens the log in the default text editor.

ModsViewModel.cs:
Log entries for CheckForUpdates (per-mod), PurgeAndReinstallMod (path + delete result), PurgeAndReinstallAll (staging dir, each deleted folder, each reset mod).

DeploymentViewModel.cs:
Log entries for DeployAll (install path, each mod link) and LinkMod (symlink creation, reparse point check, errors with detail).

SteamUpdaterViewModel.cs:
Log entries across SteamLogin (each step, connection errors with stack trace), RunModsUpdater (login result, semaphore flow, per-mod task), and DownloadForMultiple (SetupAsync/VerifyAsync/DownloadAsync steps, file verification events, exceptions with full stack traces).

⬇️ Next: #PR5 CI/CD

FASTER/Models/Logger.cs (new)
- Static Logger class: writes timestamped entries to
  %AppData%\FASTER\faster.log when enableDebugLog setting is true

FASTER/Properties/Settings.settings, FASTER/Properties/Settings.Designer.cs
- Add enableDebugLog boolean setting (default: false)

FASTER/Views/Settings.xaml, FASTER/Views/Settings.xaml.cs
- Add "Enable Debug Logging" checkbox and "Open Log File" button
  in the Program Settings panel

FASTER/ViewModel/ModsViewModel.cs
- Log calls in CheckForUpdates (per-mod), PurgeAndReinstallMod (path +
  delete result), PurgeAndReinstallAll (staging dir, each deleted folder,
  each reset mod)

FASTER/ViewModel/DeploymentViewModel.cs
- Log calls in DeployAll (install path, each mod link), LinkMod
  (symlink creation, reparse point check, errors with detail)

FASTER/ViewModel/SteamUpdaterViewModel.cs
- Log calls in SteamLogin (each step, errors with stack trace),
  RunModsUpdater (login result, per-mod task start/end),
  DownloadForMultiple (SetupAsync/VerifyAsync/DownloadAsync steps,
  file verification events, exceptions with full stack traces)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

This was referenced May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant