|
Core Library
1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
|
Wrapper header linking to other logging headers. More...
Go to the source code of this file.
Macros | |
| #define | DEBUG_LOG(x, m) |
| Simple macro to simplify logging. More... | |
| #define | DEBUG_LOG_EX(x, m, l) |
| Macro to simplify logging adding message and level. More... | |
| #define | DEBUG_LOG_EX_DEBUG(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_DEBUG) |
| Simple macro to simplify logging generating message with level debug. More... | |
| #define | DEBUG_LOG_EX_INFO(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_INFO) |
| Simple macro to simplify logging generating message with level info. More... | |
| #define | DEBUG_LOG_EX_WARNING(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_WARNING) |
| Simple macro to simplify logging generating message with level warning. More... | |
| #define | DEBUG_LOG_EX_ERROR(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_ERROR) |
| Simple macro to simplify logging generating message with level error. More... | |
| #define | DEBUG_LOG_EX_FATAL(x, m) DEBUG_LOG_EX(x, m, LOG_LEVEL_FATAL) |
| Simple macro to simplify logging generating message with level fatal. More... | |
| #define | DEBUG_LOG_ADD_FILTER(x, l) x.AddLogMsgLevelFilter(l) |
| Macro to add message level to filter set. More... | |
| #define | DEBUG_LOG_ADD_FILTER_DEBUG(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_DEBUG) |
| Macro to add message level debug to filter set. More... | |
| #define | DEBUG_LOG_ADD_FILTER_INFO(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_INFO) |
| Macro to add message level info to filter set. More... | |
| #define | DEBUG_LOG_ADD_FILTER_WARNING(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_WARNING) |
| Macro to add message level warning to filter set. More... | |
| #define | DEBUG_LOG_ADD_FILTER_ERROR(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_ERROR) |
| Macro to add message level error to filter set. More... | |
| #define | DEBUG_LOG_ADD_FILTER_FATAL(x) DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_FATAL) |
| Macro to add message level fatal to filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER(x, l) x.RemoveLogMsgLevelFilter(l) |
| Macro to remove message level from filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER_DEBUG(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_DEBUG) |
| Macro to remove message level debug from filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER_INFO(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_INFO) |
| Macro to remove message level info from filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER_WARNING(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_WARNING) |
| Macro to remove message level warning from filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER_ERROR(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_ERROR) |
| Macro to remove message level error from filter set. More... | |
| #define | DEBUG_LOG_REMOVE_FILTER_FATAL(x) DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_FATAL) |
| Macro to remove message level fatal from filter set. More... | |
| #define | DEBUG_LOG_CLEAR_FILTERS(x) x.ClearLogMsgLevelFilters() |
| Macro to clear filter set. More... | |
| #define | DEBUG_MESSAGE_INSTANTIATE(v, p, f) DEBUG_LOG_SINGLETON.Instantiate(v, p, f) |
| Macro to simplify instantiation of debug log. More... | |
| #define | DEBUG_MESSAGE_INSTANTIATE_EX(v, p, f, s) DEBUG_LOG_SINGLETON.Instantiate(v, p, f, s) |
| Macro to simplify instantiation of debug log. More... | |
| #define | DEBUG_MESSAGE_DELETE_SINGLETON() DEBUG_LOG_SINGLETON_DELETER |
| Macro to gracefully delete the debug singleton. More... | |
| #define | DEBUG_MESSAGE(m) DEBUG_LOG(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging. More... | |
| #define | DEBUG_MESSAGE_EX(m, l) DEBUG_LOG_EX(DEBUG_LOG_SINGLETON, m, l) |
| Macro to simplify logging adding message and level. More... | |
| #define | DEBUG_MESSAGE_EX_DEBUG(m) DEBUG_LOG_EX_DEBUG(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging generating message with level debug. More... | |
| #define | DEBUG_MESSAGE_EX_INFO(m) DEBUG_LOG_EX_INFO(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging generating message with level info. More... | |
| #define | DEBUG_MESSAGE_EX_WARNING(m) DEBUG_LOG_EX_WARNING(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging generating message with level warning. More... | |
| #define | DEBUG_MESSAGE_EX_ERROR(m) DEBUG_LOG_EX_ERROR(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging generating message with level error. More... | |
| #define | DEBUG_MESSAGE_EX_FATAL(m) DEBUG_LOG_EX_FATAL(DEBUG_LOG_SINGLETON, m) |
| Simple macro to simplify logging generating message with level fatal. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER(l) DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) |
| Macro to add message level to filter set. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER_DEBUG() DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) |
| Macro to add message level debug to filter set. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER_INFO() DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) |
| Macro to add message level info to filter set. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER_WARNING() DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) |
| Macro to add message level warning to filter set. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER_ERROR() DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) |
| Macro to add message level error to filter set. More... | |
| #define | DEBUG_MESSAGE_ADD_FILTER_FATAL() DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) |
| Macro to add message level fatal to filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER(l) DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) |
| Macro to remove message level from filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER_DEBUG() DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) |
| Macro to remove message level debug from filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER_INFO() DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) |
| Macro to remove message level info from filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER_WARNING() DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) |
| Macro to remove message level warning from filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER_ERROR() DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) |
| Macro to remove message level error from filter set. More... | |
| #define | DEBUG_MESSAGE_REMOVE_FILTER_FATAL() DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) |
| Macro to remove message level fatal from filter set. More... | |
| #define | DEBUG_MESSAGE_CLEAR_FILTERS() DEBUG_LOG_CLEAR_FILTERS(DEBUG_LOG_SINGLETON) |
| Macro to clear filter set. More... | |
Variables | |
| static constexpr core_lib::log::eLogMessageLevel | LOG_LEVEL_DEBUG |
| Constants for each log error level. More... | |
| static constexpr core_lib::log::eLogMessageLevel | LOG_LEVEL_INFO |
| static constexpr core_lib::log::eLogMessageLevel | LOG_LEVEL_WARNING |
| static constexpr core_lib::log::eLogMessageLevel | LOG_LEVEL_ERROR |
| static constexpr core_lib::log::eLogMessageLevel | LOG_LEVEL_FATAL |
Wrapper header linking to other logging headers.
| #define DEBUG_LOG | ( | x, | |
| m | |||
| ) |
Simple macro to simplify logging.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_ADD_FILTER | ( | x, | |
| l | |||
| ) | x.AddLogMsgLevelFilter(l) |
Macro to add message level to filter set.
| [in] | x | - DebugLog object. |
| [in] | l | - Log message level from enum eLogMessageLevel. |
| #define DEBUG_LOG_ADD_FILTER_DEBUG | ( | x | ) | DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_DEBUG) |
Macro to add message level debug to filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_ADD_FILTER_ERROR | ( | x | ) | DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_ERROR) |
Macro to add message level error to filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_ADD_FILTER_FATAL | ( | x | ) | DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_FATAL) |
Macro to add message level fatal to filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_ADD_FILTER_INFO | ( | x | ) | DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_INFO) |
Macro to add message level info to filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_ADD_FILTER_WARNING | ( | x | ) | DEBUG_LOG_ADD_FILTER(x, LOG_LEVEL_WARNING) |
Macro to add message level warning to filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_CLEAR_FILTERS | ( | x | ) | x.ClearLogMsgLevelFilters() |
Macro to clear filter set.
| [in] | x | - DebugLog object. |
| #define DEBUG_LOG_EX | ( | x, | |
| m, | |||
| l | |||
| ) |
Macro to simplify logging adding message and level.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| [in] | l | - Log message level from enum eLogMessageLevel. |
| #define DEBUG_LOG_EX_DEBUG | ( | x, | |
| m | |||
| ) | DEBUG_LOG_EX(x, m, LOG_LEVEL_DEBUG) |
Simple macro to simplify logging generating message with level debug.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_EX_ERROR | ( | x, | |
| m | |||
| ) | DEBUG_LOG_EX(x, m, LOG_LEVEL_ERROR) |
Simple macro to simplify logging generating message with level error.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_EX_FATAL | ( | x, | |
| m | |||
| ) | DEBUG_LOG_EX(x, m, LOG_LEVEL_FATAL) |
Simple macro to simplify logging generating message with level fatal.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_EX_INFO | ( | x, | |
| m | |||
| ) | DEBUG_LOG_EX(x, m, LOG_LEVEL_INFO) |
Simple macro to simplify logging generating message with level info.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_EX_WARNING | ( | x, | |
| m | |||
| ) | DEBUG_LOG_EX(x, m, LOG_LEVEL_WARNING) |
Simple macro to simplify logging generating message with level warning.
| [in] | x | - DebugLog object. |
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| #define DEBUG_LOG_REMOVE_FILTER | ( | x, | |
| l | |||
| ) | x.RemoveLogMsgLevelFilter(l) |
Macro to remove message level from filter set.
| [in] | x- | DebugLog object. |
| [in] | l | - Log message level from enum eLogMessageLevel. |
| #define DEBUG_LOG_REMOVE_FILTER_DEBUG | ( | x | ) | DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_DEBUG) |
Macro to remove message level debug from filter set.
| [in] | x- | DebugLog object. |
| #define DEBUG_LOG_REMOVE_FILTER_ERROR | ( | x | ) | DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_ERROR) |
Macro to remove message level error from filter set.
| [in] | x- | DebugLog object. |
| #define DEBUG_LOG_REMOVE_FILTER_FATAL | ( | x | ) | DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_FATAL) |
Macro to remove message level fatal from filter set.
| [in] | x- | DebugLog object. |
| #define DEBUG_LOG_REMOVE_FILTER_INFO | ( | x | ) | DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_INFO) |
Macro to remove message level info from filter set.
| [in] | x- | DebugLog object. |
| #define DEBUG_LOG_REMOVE_FILTER_WARNING | ( | x | ) | DEBUG_LOG_REMOVE_FILTER(x, LOG_LEVEL_WARNING) |
Macro to remove message level warning from filter set.
| [in] | x- | DebugLog object. |
| #define DEBUG_MESSAGE | ( | m | ) | DEBUG_LOG(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER | ( | l | ) | DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) |
Macro to add message level to filter set.
| [in] | l | - Log message level from enum eLogMessageLevel. |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER_DEBUG | ( | ) | DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) |
Macro to add message level debug to filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER_ERROR | ( | ) | DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) |
Macro to add message level error to filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER_FATAL | ( | ) | DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) |
Macro to add message level fatal to filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER_INFO | ( | ) | DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) |
Macro to add message level info to filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_ADD_FILTER_WARNING | ( | ) | DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) |
Macro to add message level warning to filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_CLEAR_FILTERS | ( | ) | DEBUG_LOG_CLEAR_FILTERS(DEBUG_LOG_SINGLETON) |
Macro to clear filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_DELETE_SINGLETON | ( | ) | DEBUG_LOG_SINGLETON_DELETER |
Macro to gracefully delete the debug singleton.
This macro should rarely need to be used and only in the case where you do not want to let the singleton manage the destruction of the debug log object.
| #define DEBUG_MESSAGE_EX | ( | m, | |
| l | |||
| ) | DEBUG_LOG_EX(DEBUG_LOG_SINGLETON, m, l) |
Macro to simplify logging adding message and level.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
| [in] | l | - Log message level from enum eLogMessageLevel. |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_EX_DEBUG | ( | m | ) | DEBUG_LOG_EX_DEBUG(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging generating message with level debug.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_EX_ERROR | ( | m | ) | DEBUG_LOG_EX_ERROR(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging generating message with level error.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_EX_FATAL | ( | m | ) | DEBUG_LOG_EX_FATAL(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging generating message with level fatal.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_EX_INFO | ( | m | ) | DEBUG_LOG_EX_INFO(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging generating message with level info.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_EX_WARNING | ( | m | ) | DEBUG_LOG_EX_WARNING(DEBUG_LOG_SINGLETON, m) |
Simple macro to simplify logging generating message with level warning.
| [in] | m | - Object to be used as message in DebugLog (must be convertible to string via std::ostringstream). |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_INSTANTIATE | ( | v, | |
| p, | |||
| f | |||
| ) | DEBUG_LOG_SINGLETON.Instantiate(v, p, f) |
Macro to simplify instantiation of debug log.
| [in] | v | - Software version string must be convertible to std::string. |
| [in] | p | - Log file path string with trailing backslash must be convertible to std::string. |
| [in] | f | - Log file name string without file extension with trailing backslash must be convertible to std::string. |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_INSTANTIATE_EX | ( | v, | |
| p, | |||
| f, | |||
| s | |||
| ) | DEBUG_LOG_SINGLETON.Instantiate(v, p, f, s) |
Macro to simplify instantiation of debug log.
| [in] | v | - Software version string must be convertible to std::string. |
| [in] | p | - Log file path string with trailing backslash must be convertible to std::string. |
| [in] | f | - Log file name string without file extension with trailing backslash must be convertible to std::string. |
| [in] | s | - The maximum size for the log file. |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER | ( | l | ) | DEBUG_LOG_ADD_FILTER(DEBUG_LOG_SINGLETON, l) |
Macro to remove message level from filter set.
| [in] | l | - Log message level from enum eLogMessageLevel. |
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER_DEBUG | ( | ) | DEBUG_LOG_ADD_FILTER_DEBUG(DEBUG_LOG_SINGLETON) |
Macro to remove message level debug from filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER_ERROR | ( | ) | DEBUG_LOG_ADD_FILTER_ERROR(DEBUG_LOG_SINGLETON) |
Macro to remove message level error from filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER_FATAL | ( | ) | DEBUG_LOG_ADD_FILTER_FATAL(DEBUG_LOG_SINGLETON) |
Macro to remove message level fatal from filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER_INFO | ( | ) | DEBUG_LOG_ADD_FILTER_INFO(DEBUG_LOG_SINGLETON) |
Macro to remove message level info from filter set.
This version uses a singleton to maintain a global log object.
| #define DEBUG_MESSAGE_REMOVE_FILTER_WARNING | ( | ) | DEBUG_LOG_ADD_FILTER_WARNING(DEBUG_LOG_SINGLETON) |
Macro to remove message level warning from filter set.
This version uses a singleton to maintain a global log object.
|
static |
Constants for each log error level.
|
static |
|
static |
|
static |
|
static |