mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 09:30:55 +00:00
refactor(logging): centralize messages and extensible outputs
Replace Boost logging calls with Sunshine text, format, and lazy builder functions to address cpp:S6996 at the shared source. Keep Boost private to the backend and provide independently owned synchronous or asynchronous sinks for future outputs. Add API, filtering, delivery, ownership, failure, periodic formatting, and external callback tests. Validate with the native build, 53 focused logging tests, Clang syntax checks, Linux syntax checks, and strict Doxygen. The broader native run has only the existing licensed HID broker failure.
This commit is contained in:
69 files changed
+3720
-2102
No files matched your search
@@ -616,11 +616,9 @@ TEST_F(ProcessRefreshTest, FileTimeType_DefaultValueComparison) {
|
||||
// We cannot assert the comparison direction since it is platform-dependent.
|
||||
// Instead, just log and document both cases.
|
||||
if (now_time <= default_time) {
|
||||
BOOST_LOG(info) << "file_time_type::clock::now() <= file_time_type{} is TRUE on this platform "
|
||||
<< "(this is the UCRT64 case that requires the optional sentinel)";
|
||||
logging::info("file_time_type::clock::now() <= file_time_type{} is TRUE on this platform (this is the UCRT64 case that requires the optional sentinel)");
|
||||
} else {
|
||||
BOOST_LOG(info) << "file_time_type::clock::now() > file_time_type{} on this platform "
|
||||
<< "(default-init guard would have worked, but optional is still safer)";
|
||||
logging::info("file_time_type::clock::now() > file_time_type{} on this platform (default-init guard would have worked, but optional is still safer)");
|
||||
}
|
||||
|
||||
// The actual correctness is verified by Refresh_ParsesFileOnFirstCall above —
|
||||
|
||||
Reference in new issue
Block a user