core: add VICTORY_LOG_FILE support for file logging #32

Open
nullexxx wants to merge 1 commit from upstream-pr/32 into main
nullexxx commented 2026-11-26 13:39:41 +00:00 (Migrated from git.gtahub.st)

Imported from TaynanGT/Vice-Tay-v2. Originally posted by nullexxx on 2026-11-26T13:39:41Z.


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

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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay-v2:issue:13197 --> Imported from [TaynanGT/Vice-Tay-v2](https://git.gtahub.st/github/TaynanGT--Vice-Tay-v2/pulls/32). Originally posted by [nullexxx](https://github.com/nullexxx) on 2026-11-26T13:39:41Z. --- **@⁠nullexxx** on GitHub · 2026-11-26 13:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/32) `nullexxx:feat/victory-log-file` → `main` · +10 −0 · 1 files · 1 commits · open ### 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.*
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/32:upstream-pr/32'
git switch 'upstream-pr/32'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/32'
git switch 'upstream-pr/32'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/32'
git switch 'upstream-pr/32'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/32'
git switch 'main'
git merge --squash 'upstream-pr/32'
git switch 'main'
git merge --ff-only 'upstream-pr/32'
git switch 'main'
git merge 'upstream-pr/32'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay-v2!32
No description provided.