- BUILD_RTI Guards in LtsSession implementiert (6 Dateien) - LtsSessionDataDds Stub für BUILD_RTI=OFF erstellt - Export-Header Stubs erstellt (GuezNasat, AlarmManagement, MarkerManagement) - Include-Pfade korrigiert (resource_path.h, logger.h, Proxies) - QStringRef → QString migriert (Qt6 Kompatibilität) - Qt6::Gui Dependencies hinzugefügt (LtsElevation, AdvancedSymbology) - FilterManagement-Plugins temporär vom Build ausgeschlossen - MOC-Probleme gefixt (staticMetaObject, override final) - Build erfolgreich: 1940 Targets mit BUILD_RTI=OFF im Docker-Container Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
33 lines
566 B
C++
Executable File
33 lines
566 B
C++
Executable File
|
|
|
|
|
|
#include "logger.h"
|
|
|
|
#include <NGLLoggerBootstrap.h>
|
|
|
|
namespace BuildingViewer
|
|
{
|
|
|
|
LOGGER_T getLogger(const char *name)
|
|
{
|
|
static const char ns[] = "ASB.";
|
|
std::string loggerName;
|
|
const size_t len = strlen(name);
|
|
loggerName.reserve(sizeof(ns) + len);
|
|
loggerName.append(ns, sizeof(ns) - 1);
|
|
loggerName.append(name, len);
|
|
|
|
try
|
|
{
|
|
return NGL::NGLLoggerBootstrap::getNGLRootLogger().
|
|
getNGLLogger(loggerName);
|
|
}
|
|
catch (const std::exception &ex)
|
|
{
|
|
fprintf(stderr, "Error retrieving logger: %s", ex.what());
|
|
abort();
|
|
}
|
|
}
|
|
|
|
}
|