Go to the source code of this file.
Classes | |
class | DebugMessage |
manages configurable aspects of a debugs() message More... | |
class | DebugMessages |
a collection of DebugMessage objects (with fast access by message IDs) More... | |
Macros | |
#define | Critical(id) DebugMessageLevel<id>(DBG_CRITICAL) |
#define | Important(id) DebugMessageLevel<id>(DBG_IMPORTANT) |
#define | Dbg(id, defaultLevel) DebugMessageLevel<id>(defaultLevel) |
Typedefs | |
typedef size_t | DebugMessageId |
an identifier for messages supporting configuration via cache_log_message More... | |
Functions | |
template<DebugMessageId id> | |
int | DebugMessageLevel (const int defaultLevel) |
Variables | |
constexpr DebugMessageId | DebugMessageIdUpperBound = 70 |
The maximum used DebugMessage::id plus 1. Increase as you add new IDs. More... | |
DebugMessages * | DebugMessagesConfig = nullptr |
Global configuration for DebugMessageLevel() (where/when supported). More... | |
Macro Definition Documentation
◆ Critical
#define Critical | ( | id | ) | DebugMessageLevel<id>(DBG_CRITICAL) |
Definition at line 92 of file Messages.h.
◆ Dbg
#define Dbg | ( | id, | |
defaultLevel | |||
) | DebugMessageLevel<id>(defaultLevel) |
Definition at line 94 of file Messages.h.
◆ Important
#define Important | ( | id | ) | DebugMessageLevel<id>(DBG_IMPORTANT) |
Definition at line 93 of file Messages.h.
Typedef Documentation
◆ DebugMessageId
typedef size_t DebugMessageId |
Definition at line 22 of file Messages.h.
Function Documentation
◆ DebugMessageLevel()
|
inline |
- Returns
- configured debugging level for the given message or defaultLevel
Definition at line 82 of file Messages.h.
References DebugMessageIdUpperBound, and DebugMessagesConfig.
Variable Documentation
◆ DebugMessageIdUpperBound
|
constexpr |
Definition at line 64 of file Messages.h.
Referenced by DebugMessageLevel(), and ParseDebugMessageId().
◆ DebugMessagesConfig
|
inline |
Definition at line 76 of file Messages.h.
Referenced by DebugMessageLevel().