6 #include "spdlog/spdlog.h" 19 const std::string &logger_name,
20 spdlog::level::level_enum log_level);
31 const std::string &logger_name,
32 spdlog::level::level_enum log_level = spdlog::level::info);
39 #define dbg_trace(logger, ...) logger->trace(__VA_ARGS__) 40 #define dbg_default_trace(...) dbg_trace(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 41 #define dbg_debug(logger, ...) logger->debug(__VA_ARGS__) 42 #define dbg_default_debug(...) dbg_debug(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 43 #define dbg_info(logger, ...) logger->info(__VA_ARGS__) 44 #define dbg_default_info(...) dbg_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 45 #define dbg_warn(logger, ...) logger->warn(__VA_ARGS__) 46 #define dbg_default_warn(...) dbg_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 47 #define dbg_error(logger, ...) logger->error(__VA_ARGS__) 48 #define dbg_default_error(...) dbg_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 49 #define dbg_crit(logger, ...) logger->critical(__VA_ARGS__) 50 #define dbg_default_crit(...) dbg_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 51 #define dbg_flush(logger) logger->flush() 52 #define dbg_default_flush() LoggerFactory::getDefaultLogger()->flush() 55 #define dbg_trace(logger, ...) 56 #define dbg_default_trace(...) 57 #define dbg_debug(logger, ...) 58 #define dbg_default_debug(...) 59 #define dbg_info(logger, ...) 60 #define dbg_default_info(...) 61 #define dbg_warn(logger, ...) 62 #define dbg_default_warn(...) 63 #define dbg_error(logger, ...) 64 #define dbg_default_error(...) 65 #define dbg_crit(logger, ...) 66 #define dbg_default_crit(...) 67 #define dbg_flush(logger) 68 #define dbg_default_flush() 72 #define rls_info(logger, ...) logger->info(__VA_ARGS__) 73 #define rls_default_info(...) rls_info(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 74 #define rls_warn(logger, ...) logger->warn(__VA_ARGS__) 75 #define rls_default_warn( ... ) rls_warn(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 76 #define rls_error(logger, ...) logger->error(__VA_ARGS__) 77 #define rls_default_error( ... ) rls_error(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 78 #define rls_crit(logger, ...) logger->critical(__VA_ARGS__) 79 #define rls_default_crit( ... ) rls_crit(LoggerFactory::getDefaultLogger(), __VA_ARGS__) 80 #define rls_flush(logger) logger->flush() 81 #define rls_default_flush() LoggerFactory::getDefaultLogger()->flush() static std::shared_ptr< spdlog::logger > _default_logger
static std::shared_ptr< spdlog::logger > createLogger(const std::string &logger_name, spdlog::level::level_enum log_level=spdlog::level::info)
static void _initialize()
static std::shared_ptr< spdlog::details::thread_pool > _thread_pool_holder
static std::shared_ptr< spdlog::logger > & getDefaultLogger()
static std::atomic< uint32_t > _initialize_state
static std::shared_ptr< spdlog::logger > _create_logger(const std::string &logger_name, spdlog::level::level_enum log_level)