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
@@ -11,12 +11,23 @@ AudioCommandService::AudioCommandService(std::shared_ptr<IConfigService> configS
: configService_(std::move(configService)),
audioService_(std::move(audioService)),
logger_(std::move(logger)) {
if (logger_) {
logger_->Trace("AudioCommandService", "AudioCommandService",
"configService=" + std::string(configService_ ? "set" : "null") +
", audioService=" + std::string(audioService_ ? "set" : "null"));
}
}
bool AudioCommandService::QueueAudioCommand(AudioCommandType type,
const std::string& path,
bool loop,
std::string& error) {
if (logger_) {
logger_->Trace("AudioCommandService", "QueueAudioCommand",
"type=" + std::to_string(static_cast<int>(type)) +
", path=" + path +
", loop=" + std::string(loop ? "true" : "false"));
}
if (!audioService_) {
error = "Audio service not available";
return false;