#PR4 Debug Logging#262
Open
diaverso wants to merge 1 commit into
Open
Conversation
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>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



⬆️ 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
Loggerclass that writes timestamped entries to%AppData%\FASTER\faster.logwhen theenableDebugLogsetting istrue. No-op when disabled.Settings (Settings.settings / Settings.Designer.cs):
New
enableDebugLogboolean setting (default:false).Settings UI (Settings.xaml / Settings.xaml.cs):
New
Enable Debug Loggingcheckbox andOpen Log Filebutton 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) andLinkMod(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), andDownloadForMultiple(SetupAsync/VerifyAsync/DownloadAsyncsteps, file verification events, exceptions with full stack traces).⬇️ Next: #PR5 CI/CD