Messages.h
Go to the documentation of this file.
85 static_assert(id < DebugMessageIdUpperBound, "debugs() message ID must be smaller than DebugMessageIdUpperBound");
bool configured() const
whether the logging of this message has been customized
Definition: Messages.h:29
uint64_t limit
logging attempts beyond this limit are logged at the DBG_DATA level
Definition: Messages.h:56
bool limited() const
whether the number of logging attempts have been limited
Definition: Messages.h:35
uint64_t count_
the total number of attempts to log this message if it was configured()
Definition: Messages.h:60
bool levelled() const
whether the default logging level of this message has been altered
Definition: Messages.h:32
a collection of DebugMessage objects (with fast access by message IDs)
Definition: Messages.h:68
std::array< DebugMessage, DebugMessageIdUpperBound > Storage
configurable messages indexed by their IDs
Definition: Messages.h:71
constexpr DebugMessageId DebugMessageIdUpperBound
The maximum used DebugMessage::id plus 1. Increase as you add new IDs.
Definition: Messages.h:64
DebugMessages * DebugMessagesConfig
Global configuration for DebugMessageLevel() (where/when supported).
Definition: Messages.h:76
size_t DebugMessageId
an identifier for messages supporting configuration via cache_log_message
Definition: Messages.h:22