Messages.h
Go to the documentation of this file.
85 static_assert(id < DebugMessageIdUpperBound, "debugs() message ID must be smaller than DebugMessageIdUpperBound");
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
uint64_t count_
the total number of attempts to log this message if it was configured()
Definition: Messages.h:60
uint64_t limit
logging attempts beyond this limit are logged at the DBG_DATA level
Definition: Messages.h:56
a collection of DebugMessage objects (with fast access by message IDs)
Definition: Messages.h:67
std::array< DebugMessage, DebugMessageIdUpperBound > Storage
configurable messages indexed by their IDs
Definition: Messages.h:71
bool levelled() const
whether the default logging level of this message has been altered
Definition: Messages.h:32
bool configured() const
whether the logging of this message has been customized
Definition: Messages.h:29
constexpr DebugMessageId DebugMessageIdUpperBound
The maximum used DebugMessage::id plus 1. Increase as you add new IDs.
Definition: Messages.h:64
bool limited() const
whether the number of logging attempts have been limited
Definition: Messages.h:35
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products