31 #include <boost/current_function.hpp> 53 #define DEBUG_LOG(x, m) \ 56 std::ostringstream os; \ 58 x.AddLogMessage(os.str()); \ 68 #define DEBUG_LOG_EX(x, m, l) \ 71 std::ostringstream os; \ 73 x.AddLogMessage(os.str(), std::string(__FILE__), BOOST_CURRENT_FUNCTION, __LINE__, l); \ 82 #define DEBUG_LOG_EX_DEBUG(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_DEBUG) 90 #define DEBUG_LOG_EX_INFO(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_INFO) 98 #define DEBUG_LOG_EX_WARNING(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_WARNING) 106 #define DEBUG_LOG_EX_ERROR(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_ERROR) 114 #define DEBUG_LOG_EX_FATAL(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_FATAL) 121 #define DEBUG_LOG_ADD_FILTER(x, l) x.AddLogMsgLevelFilter(l) 127 #define DEBUG_LOG_ADD_FILTER_DEBUG(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_DEBUG) 133 #define DEBUG_LOG_ADD_FILTER_INFO(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_INFO) 139 #define DEBUG_LOG_ADD_FILTER_WARNING(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_WARNING) 145 #define DEBUG_LOG_ADD_FILTER_ERROR(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_ERROR) 151 #define DEBUG_LOG_ADD_FILTER_FATAL(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_FATAL) 158 #define DEBUG_LOG_REMOVE_FILTER(x, l) x.RemoveLogMsgLevelFilter(l) 164 #define DEBUG_LOG_REMOVE_FILTER_DEBUG(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_DEBUG) 170 #define DEBUG_LOG_REMOVE_FILTER_INFO(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_INFO) 176 #define DEBUG_LOG_REMOVE_FILTER_WARNING(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_WARNING) 182 #define DEBUG_LOG_REMOVE_FILTER_ERROR(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_ERROR) 188 #define DEBUG_LOG_REMOVE_FILTER_FATAL(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_FATAL) 194 #define DEBUG_LOG_CLEAR_FILTERS(x) x.ClearLogMsgLevelFilters() 205 #define DEBUG_MESSAGE_INSTANTIATE(v, p, f) DEBUG_LOG_SINGLETON.Instantiate(v, p, f) 217 #define DEBUG_MESSAGE_INSTANTIATE_EX(v, p, f, s) DEBUG_LOG_SINGLETON.Instantiate(v, p, f, s) 226 #define DEBUG_MESSAGE_DELETE_SINGLETON() DEBUG_LOG_SINGLETON_DELETER 235 #define DEBUG_MESSAGE(m) DEBUG_LOG(DEBUG_LOG_SINGLETON, m) 245 #define DEBUG_MESSAGE_EX(m, l) DEBUG_LOG_EX(DEBUG_LOG_SINGLETON, m, l) 254 #define DEBUG_MESSAGE_EX_DEBUG(m) DEBUG_LOG_EX_DEBUG(DEBUG_LOG_SINGLETON, m) 263 #define DEBUG_MESSAGE_EX_INFO(m) DEBUG_LOG_EX_INFO(DEBUG_LOG_SINGLETON, m) 272 #define DEBUG_MESSAGE_EX_WARNING(m) DEBUG_LOG_EX_WARNING(DEBUG_LOG_SINGLETON, m) 281 #define DEBUG_MESSAGE_EX_ERROR(m) DEBUG_LOG_EX_ERROR(DEBUG_LOG_SINGLETON, m) 290 #define DEBUG_MESSAGE_EX_FATAL(m) DEBUG_LOG_EX_FATAL(DEBUG_LOG_SINGLETON, m) 298 #define DEBUG_MESSAGE_ADD_FILTER(l) DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) 305 #define DEBUG_MESSAGE_ADD_FILTER_DEBUG() DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) 312 #define DEBUG_MESSAGE_ADD_FILTER_INFO() DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) 319 #define DEBUG_MESSAGE_ADD_FILTER_WARNING() DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) 326 #define DEBUG_MESSAGE_ADD_FILTER_ERROR() DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) 333 #define DEBUG_MESSAGE_ADD_FILTER_FATAL() DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) 341 #define DEBUG_MESSAGE_REMOVE_FILTER(l) DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) 348 #define DEBUG_MESSAGE_REMOVE_FILTER_DEBUG() DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) 355 #define DEBUG_MESSAGE_REMOVE_FILTER_INFO() DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) 362 #define DEBUG_MESSAGE_REMOVE_FILTER_WARNING() DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) 369 #define DEBUG_MESSAGE_REMOVE_FILTER_ERROR() DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) 376 #define DEBUG_MESSAGE_REMOVE_FILTER_FATAL() DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) 383 #define DEBUG_MESSAGE_CLEAR_FILTERS() DEBUG_LOG_CLEAR_FILTERS(DEBUG_LOG_SINGLETON) 385 #endif // DEBUGLOGGING Warning level defined for message.
Error level defined for message.
File containing declaration of DebugLog Singleton.
eLogMessageLevel
Enumeration containing log message level options.
Definition: DebugLog.h:61
Debug level defined for message.
Fatal level defined for message.
static constexpr core_lib::log::eLogMessageLevel LOG_LEVEL_DEBUG
Constants for each log error level.
Definition: DebugLogging.h:36
Info level defined for message.