src/c++/include/common/Error.hh
/**
 * Get / initialize the logger
 * @param name   name of the logger
 * @return the spdlog logger
 */
Get / initialize the logger
@param name   name of the logger
@return the spdlog logger
Get / initialize the logger @param name name of the logger @return the spdlog logger
static inline std::shared_ptr<spdlog::logger> LOG(const char* name = nullptr)
{
    if (name == nullptr)
    {
        name = DEFAULT_LOGGER_NAME.c_str();
    }
    auto log = spdlog::get(name);
    if (!log)
    {
        log = spdlog::stderr_color_mt(name);
    }
    return log;
}
static inline std :: shared_ptr < spdlog :: logger > LOG ( const char * name = nullptr ) { if ( name == nullptr ) { name = DEFAULT_LOGGER_NAME . c_str ( ) ; } auto log = spdlog :: get ( name ) ; if ( ! log ) { log = spdlog :: stderr_color_mt ( name ) ; } return log ; }
Get / initialize the logger
 @param name   name of the logger
 @return the spdlog logger
Get / initialize the logger @param name name of the logger @return the spdlog logger