feat(libc): add optional log timestamps #5860
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5860"
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?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T13:55:45Z.
What
Add opt-in elapsed-time prefixes to lines written through
WriteLogLine. SetAPS5_LOG_TIMESTAMPSto enable the monotonic timestamp; it is disabled by default. The prefix and message are emitted in one write so concurrent lines stay together. The default path keeps the existing output unchanged.Add a separate CTest case for timestamped output, including short and long lines and the no-argument logging macro. This is the timestamp-prefix topic from #3815; the other remaining topics stay separate.
Tested
core/libs/tests/LogMacros.cppwith-std=c++20 -Wall -Wextra -Werror -pthread; both default and timestamped modes passed.python3 tools/check_conventions.py --base upstream/mainpassed.git diff --checkpassed.Checklist
main; no other open PR implements the same logging behaviorImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T14:06:30Z.
Checked the prefix/long-line paths in
WriteLogLine, builtLogMacros.cppwith-Wall -Wextra -Werror: default andtimestampsmodes pass, and thetimestampscase fails againstmain's header. Merging once the full build is green.