[enhancement] Add debugging levels or optimize the current logger #359
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
What you would like
The original Victory source logged too many things that have no importance for diagnosing problems and issues. The current Darner logger does the same (tested on Darner
f3840d73d3). Every ~1 s it prints ~55 lines of per-frame internal statistics (texture queue, descriptor heaps, hwrt, landing, card ledger, etc.), many over 1,000 characters, plus repeating lines likea texture already on the card is brought up to date although the card has no room for new onesandtexture readback landed.A 2 h playing session produces ~500,000 lines and ~125 MB log files, which is extremely large and unmanageable for a human or an AI agent to read.
This detail may be useful in a dev build, but the release build should at least have log levels option in the F1 menu, or an optimized logger that keeps only what's truly necessary for diagnosing issues.
I cannot provide the log file since it's too large to upload.

Are you working on a fix?
No
On the current build,
darner.exe play --set DARNER_LOG=warnstarts with warnings and errors only. The same filter can be saved asDARNER_LOG=warnindarner-settings.txt.I reproduced a separate settings problem in that path: migrating an older settings file can delete the saved filter and return to the default logging level. #362 preserves the filter. The same Windows fixture showed the saved setting being removed on main and kept with the patch.
@andrewpozdnakov7-jpg That requires users to know about launch flags and settings files. Most Darner users are regular gamers, and they are the ones filing issues and attaching logs.
If the default log is huge, reports will be unusable. Reasonable defaults or enhancing the logger output matter more than opt-in filtering, so this should be handled out of the box in the release build. #362 doesn't fix this issue.
The change to the release default is in draft #368. It moves eight repeated frame breakdowns out of the ordinary log. The production logger kept the frame summaries, warning and error in a matched Windows fixture and emitted the selected detail only when requested. Those eight message families account for about 715 KB of the 7 MB play log attached to #351.
A short comparison on a warm save would help establish how much this changes your steady-state logs. Use the default filter on both builds, hold the scene and settings fixed, and record the output bytes and line count over the same one-minute play interval. The long-run result will show whether the remaining repeated messages need attention too.