- Replace NGL::NGLLoggerBootstrap::getNGLRootLogger() with NGL::getMemoryLogger() in all VideoOverlayManagement handler classes - Fix Qt6 signal syntax in avs_interface.cpp (error → errorOccurred) - Ensures compatibility with BUILD_RTI=OFF builds - Affected files: * logger.cpp - Added BUILD_RTI guards, use NGL::getMemoryLogger() * avs_interface.cpp - Logger init + Qt6 signal fix * main_handler.cpp - Logger init fix * handler_overlays.cpp - Logger init fix * handler_infrastructure_data.cpp - Logger init fix * handler_participant_data.cpp - Logger init fix Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
46 lines
858 B
C++
Executable File
46 lines
858 B
C++
Executable File
/**
|
|
* Building Config - logging facility
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-06-23
|
|
*/
|
|
|
|
#include "logger.h"
|
|
|
|
#if BUILD_RTI
|
|
#include <NGLLogger/NGLLoggerBootstrap.h>
|
|
#else
|
|
#include <NGLLogger.h>
|
|
#endif
|
|
|
|
namespace VideoOverlayManagement
|
|
{
|
|
|
|
LOGGER_T getLogger(const char *name)
|
|
{
|
|
static const char ns[] = "VOM.";
|
|
std::string loggerName;
|
|
const size_t len = strlen(name);
|
|
loggerName.reserve(sizeof(ns) + len);
|
|
loggerName.append(ns, sizeof(ns) - 1);
|
|
loggerName.append(name, len);
|
|
|
|
#if BUILD_RTI
|
|
try
|
|
{
|
|
return NGL::NGLLoggerBootstrap::getNGLRootLogger().
|
|
getNGLLogger(loggerName);
|
|
}
|
|
catch (const std::exception &ex)
|
|
{
|
|
fprintf(stderr, "Error retrieving logger: %s", ex.what());
|
|
abort();
|
|
}
|
|
#else
|
|
return NGL::getMemoryLogger(loggerName);
|
|
#endif
|
|
}
|
|
|
|
} // namespace VideoOverlayManagement
|