mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-05-07 03:49:37 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user