core: add VICTORY_LOG_FILE support for file logging #32
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!32
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCSummary
Adds an optional
VICTORY_LOG_FILEenvironment variable invictory_core::logging::initthat mirrors tracing output (with ANSI codes disabled) to the specified file path.Under Wine/Proton (e.g., launching from Steam),
victory.exeattaches to its own Wine console window, so shell stdout/stderr redirection does not capturevictory.exe's logs. Behavior is unchanged whenVICTORY_LOG_FILEis unset.Testing
cargo xwin build --target x86_64-pc-windows-msvc --locked --release -p victoryon CachyOS and verified underGE-Proton11-14withVICTORY_LOG_FILE="Z:\home\alex\victory.log".AI-assisted (Gemini) patch; built and verified locally.
@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:54 UTC · original
Merged in
408498d.VICTORY_LOG_FILEnow 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'}.