Messages.h
Go to the documentation of this file.
83 static_assert(id < DebugMessageIdUpperBound, "debugs() message ID must be smaller than DebugMessageIdUpperBound");
size_t DebugMessageId
an identifier for messages supporting configuration via cache_log_message
Definition: Messages.h:23
uint64_t count_
the total number of attempts to log this message if it was configured()
Definition: Messages.h:61
uint64_t limit
logging attempts beyond this limit are logged at the DBG_DATA level
Definition: Messages.h:57
a collection of DebugMessage objects (with fast access by message IDs)
Definition: Messages.h:69
std::array< DebugMessage, DebugMessageIdUpperBound > Storage
configurable messages indexed by their IDs
Definition: Messages.h:72
bool levelled() const
whether the default logging level of this message has been altered
Definition: Messages.h:33
bool configured() const
whether the logging of this message has been customized
Definition: Messages.h:30
constexpr DebugMessageId DebugMessageIdUpperBound
The maximum used DebugMessage::id plus 1. Increase as you add new IDs.
Definition: Messages.h:65
bool limited() const
whether the number of logging attempts have been limited
Definition: Messages.h:36