Refactor logging system and remove deprecated methods

This commit introduces a new `Logger` class to replace all instances of `printf` and `DEBUG_LOG` throughout the codebase. Key changes include:

- Replaced logging calls in `Audio2.cpp` and `appmodel.cpp` with structured log levels (`LOG_WARNING`, `LOG_DEBUG`, etc.).
- Removed `DebugLogger.h` and `Logger.cpp`, consolidating logging functionality into `Logger.h`.
- Added `Config.h` for configuration management using TOML files.
- Updated project files to reflect the removal of old logging files and inclusion of the new logging system.

These changes enhance logging capabilities, improve code maintainability, and standardize logging practices across the codebase.
This commit is contained in:
Serenity
2025-07-01 21:25:24 -04:00
parent 98f5f43e66
commit 2ae935a199
61 changed files with 737 additions and 955 deletions
@@ -13,7 +13,7 @@ namespace winrt::Windows::Xbox::System::implementation
}
winrt::event_token User::OnlineStateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Xbox::System::OnlineStateChangedEventArgs> const& handler)
{
Logger::Info("User::OnlineStateChanged() called");
LOG_INFO("User::OnlineStateChanged() called");
return m_onlineStateChangedEvent.add(handler);
}
void User::OnlineStateChanged(winrt::event_token const& token) noexcept
@@ -22,13 +22,13 @@ namespace winrt::Windows::Xbox::System::implementation
}
winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Xbox::System::User> User::Users()
{
wprintf(L"User || Users Queried!\n");
LOG_INFO_W(L"User || Users Queried!\n");
if (staticUsers == Foundation::Collections::IVector<winrt::Windows::Xbox::System::User>(nullptr) || staticUsers.Size( ) == 0) {
staticUsers = winrt::single_threaded_vector<System::User>( );
for (int i = 0; i < 4; i++)
{
wprintf(L"User || User %d Created!\n", i);
LOG_INFO_W(L"User || User %d Created!\n", i);
staticUser = winrt::make<User>(i);
staticUsers.Append(staticUser);
continue;