feat: Enhance logging with detailed function tracing and argument conversion utilities

This commit is contained in:
2026-01-04 01:58:08 +00:00
parent 99a4f756fd
commit 4edf0a2bbf
9 changed files with 235 additions and 90 deletions

View File

@@ -29,7 +29,8 @@ std::optional<std::filesystem::path> GetUserConfigDirectory() {
#ifdef _WIN32
namespace {
std::string FormatWin32Error(DWORD errorCode) {
sdl3cpp::logging::Logger::GetInstance().TraceFunctionWithArgs(errorCode);
using sdl3cpp::logging::ToString;
sdl3cpp::logging::Logger::GetInstance().TraceFunctionWithArgs("FormatWin32Error", ToString(static_cast<unsigned long>(errorCode)));
if (errorCode == ERROR_SUCCESS) {
return "ERROR_SUCCESS";
}