Enhance logging across various services

- Added detailed logging to the ScriptEngineService to trace initialization status.
- Improved logging in SdlAudioService to track audio operations including initialization, shutdown, and playback functions.
- Enhanced SdlInputService with logging for key and mouse events, as well as state retrieval.
- Updated SdlWindowService to log window creation, destruction, and event polling.
- Added logging to ShaderScriptService for shader path loading and Lua state retrieval.
- Implemented logging in SwapchainService for swapchain operations, including creation, cleanup, and querying support details.
- Enhanced VulkanDeviceService with logging for device creation, shutdown, and memory type queries.
- Improved VulkanGuiService with logging for GUI initialization, frame preparation, and rendering operations.
This commit is contained in:
2026-01-05 00:51:42 +00:00
parent dd8a9cf4e7
commit 147d373a5d
40 changed files with 842 additions and 166 deletions

View File

@@ -19,7 +19,14 @@ ApplicationLoopService::ApplicationLoopService(std::shared_ptr<ILogger> logger,
sceneService_(std::move(sceneService)),
audioService_(std::move(audioService)) {
if (logger_) {
logger_->Trace("ApplicationLoopService", "ApplicationLoopService", "", "Created");
logger_->Trace("ApplicationLoopService", "ApplicationLoopService",
"windowService=" + std::string(windowService_ ? "set" : "null") +
", eventBus=" + std::string(eventBus_ ? "set" : "null") +
", inputService=" + std::string(inputService_ ? "set" : "null") +
", physicsService=" + std::string(physicsService_ ? "set" : "null") +
", sceneService=" + std::string(sceneService_ ? "set" : "null") +
", audioService=" + std::string(audioService_ ? "set" : "null"),
"Created");
}
}
@@ -59,6 +66,9 @@ void ApplicationLoopService::Run() {
}
void ApplicationLoopService::HandleEvents() {
if (logger_) {
logger_->Trace("ApplicationLoopService", "HandleEvents");
}
if (windowService_) {
windowService_->PollEvents();
}