logging: rotate printf log files to cap report size #247
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!247
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/247/head"
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?
@Hashim1999164 on GitHub · 2026-08-12 22:13 UTC · original
Hashim1999164:fix/rotating-printf-log→main· +9 −3 · 1 files · 4 commits · closed without mergingSummary
basic_file_sink_mtwithrotating_file_sink_mtfor printf logs.rotate_on_open=trueso verbose titles cannot grow multi-GB logs that are useless for bug reports.Fixes #200.
Test plan
@coderabbitai[bot] on GitHub · 2026-09-25 23:16 UTC · original · edited 2026-09-30 17:18 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
4cfeacdf-f9f9-4d61-86af-6cdb9d6441d5📥 Commits
Reviewing files that changed from the base of the PR and between
b2ca96f423ande036bd2705.📒 Files selected for processing (1)
src/common/logging/log.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough
The file logger now uses a rotating sink with a 64 MiB size limit and retains up to three files. The sink rotates on open.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix · Severity of issue fixed: Medium
Merge Risk: ⚪ Minimal · up to
e036bLog files are capped at 64 MiB, with the active log and up to three rotated files retained. This matches the stated rotation policy, and no concrete merge blocker remains.
Security Architecture Review
Security architecture risk: 🔵 Low · up to
e036bThe change limits log growth without visibly adding privileges or remote access, but preserves historical content that startup previously discarded. Exact disk-use bounds and recovery after interrupted rotation were not fully verified.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
#200] requires logs to remain usable for reports.src/common/logging/log.cppreplaces the unbounded basic file sink withrotating_file_sink_mt, a 64 MiB per-file limit, and three retained f…src/common/logging/log.cpp. The size limit, retention count, native path use, and rotation-on-open behavior support issue [#200] a…Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-25 23:16 UTC · original · edited 2026-09-30 10:51 UTC
On
src/common/logging/log.cppline 52 (outdated):🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
Resolve the merge conflict before building.
<<<<<<< HEAD,=======, and>>>>>>> upstream/mainremain inMakeFileLogger. These markers makelog.cppinvalid C++, so the target cannot compile. Keep the rotating sink branch and remove the markers and basic-file alternative.Proposed resolution
Also applies to: 56-56, 59-59
✅ Addressed in commit
b2ca96f@coderabbitai[bot] on GitHub · 2026-09-25 23:16 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
c46237e6-9e86-450e-bf44-3b54662122d2📥 Commits
Reviewing files that changed from the base of the PR and between
fd2e15ee73and1cd8c672b5.📒 Files selected for processing (1)
src/common/logging/log.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@Hashim1999164 on GitHub · 2026-09-30 10:51 UTC · original
conflict markers are out of log.cpp. kept the rotating sink and dropped the basic file one from upstream. should build now.
@Hashim1999164 on GitHub · 2026-09-30 17:09 UTC · original
windows failed because spdlog wants a wide filename on that constructor. using path.native() now.
Pull request closed