- Copy Lts/Application from qt5-before (AarApp, OpApp, THP submodules) - Update all CMakeLists.txt to use Qt6::Core, Qt6::Widgets, Qt6::Xml, Qt6::Network, Qt6::PrintSupport, Qt6::Svg, Qt6::WebEngineCore, Qt6::WebEngineWidgets - No SIGNAL/SLOT, QRegExp, QDesktopWidget, or QTextCodec issues found in Application source code - Module ready for Qt6 build validation
38 lines
702 B
C++
Executable File
38 lines
702 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Building Config - logging facility
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#include "logger.h"
|
|
|
|
#include <NGLLogger/NGLLoggerBootstrap.h>
|
|
|
|
namespace AARApplication
|
|
{
|
|
|
|
LOGGER_T getLogger(const char *name)
|
|
{
|
|
static const char ns[] = "DBA.";
|
|
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();
|
|
}
|
|
}
|
|
|
|
} // namespace AARApplication
|