mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-30 00:24:59 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user