core: add VICTORY_LOG_FILE support for file logging #32

Manually merged
github merged 2 commits from github-bot/gh-32 into main 2026-11-26 19:54:24 +00:00 AGit
Owner

@⁠nullexxx on GitHub · 2026-11-26 13:37 UTC · original
nullexxx:feat/victory-log-file → main · +19 −0 · 1 files · 2 commits · merged 2026-11-26 19:50 UTC

Summary

Adds an optional VICTORY_LOG_FILE environment variable in victory_core::logging::init that mirrors tracing output (with ANSI codes disabled) to the specified file path.

Under Wine/Proton (e.g., launching from Steam), victory.exe attaches to its own Wine console window, so shell stdout/stderr redirection does not capture victory.exe's logs. Behavior is unchanged when VICTORY_LOG_FILE is unset.

Testing

  • Built with cargo xwin build --target x86_64-pc-windows-msvc --locked --release -p victory on CachyOS and verified under GE-Proton11-14 with VICTORY_LOG_FILE="Z:\home\alex\victory.log".

AI-assisted (Gemini) patch; built and verified locally.

**@⁠nullexxx** on GitHub · 2026-11-26 13:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/32) `nullexxx:feat/victory-log-file` → `main` · +19 −0 · 1 files · 2 commits · merged 2026-11-26 19:50 UTC ### Summary Adds an optional `VICTORY_LOG_FILE` environment variable in `victory_core::logging::init` that mirrors tracing output (with ANSI codes disabled) to the specified file path. Under Wine/Proton (e.g., launching from Steam), `victory.exe` attaches to its own Wine console window, so shell stdout/stderr redirection does not capture `victory.exe`'s logs. Behavior is unchanged when `VICTORY_LOG_FILE` is unset. ### Testing - Built with `cargo xwin build --target x86_64-pc-windows-msvc --locked --release -p victory` on CachyOS and verified under `GE-Proton11-14` with `VICTORY_LOG_FILE="Z:\home\alex\victory.log"`. *AI-assisted (Gemini) patch; built and verified locally.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:39:42 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 19:18 UTC · original

A file sink would make Proton reports easier to collect. Could you surface a warning if the requested path cannot be opened? File::create(...).ok() currently leaves no file and gives the user no indication why. Please also document that reusing the same path replaces the previous log.

**@⁠TaynanGT** on GitHub · 2026-11-26 19:18 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/32#issuecomment-7201446764) A file sink would make Proton reports easier to collect. Could you surface a warning if the requested path cannot be opened? `File::create(...).ok()` currently leaves no file and gives the user no indication why. Please also document that reusing the same path replaces the previous log.
github manually merged commit 408498d9b3 into main 2026-11-26 19:54:24 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-26 19:54 UTC · original

Merged in 408498d. VICTORY_LOG_FILE now appends, so a second launch keeps the earlier log. I tested two launches of the logging probe and a path that refused writes, then ran Windows CI. For the PowerShell launcher, add -More @{VICTORY_LOG_FILE='series-s.log'}.

**@⁠TaynanGT** on GitHub · 2026-11-26 19:54 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/32#issuecomment-7202079908) Merged in `408498d`. `VICTORY_LOG_FILE` now appends, so a second launch keeps the earlier log. I tested two launches of the logging probe and a path that refused writes, then ran Windows CI. For the PowerShell launcher, add `-More @{VICTORY_LOG_FILE='series-s.log'}`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.