DebugMessages.h File Reference
#include "Debug.h"
#include "SquidConfig.h"
#include <array>
#include <limits>
Include dependency graph for DebugMessages.h:
This graph shows which files directly or indirectly include this file:

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 = 65
 The maximum used DebugMessage::id plus 1. Increase as you add new IDs. More...
 

Macro Definition Documentation

◆ Critical

#define Critical (   id)    DebugMessageLevel<id>(DBG_CRITICAL)

Definition at line 90 of file DebugMessages.h.

◆ Dbg

#define Dbg (   id,
  defaultLevel 
)    DebugMessageLevel<id>(defaultLevel)

Definition at line 92 of file DebugMessages.h.

◆ Important

#define Important (   id)    DebugMessageLevel<id>(DBG_IMPORTANT)

Definition at line 91 of file DebugMessages.h.

Typedef Documentation

◆ DebugMessageId

Definition at line 23 of file DebugMessages.h.

Function Documentation

◆ DebugMessageLevel()

template<DebugMessageId id>
int DebugMessageLevel ( const int  defaultLevel)
inline
Returns
configured debugging level for the given message or defaultLevel

Definition at line 80 of file DebugMessages.h.

References Config, DebugMessageIdUpperBound, and SquidConfig::debugMessages.

Variable Documentation

◆ DebugMessageIdUpperBound

constexpr DebugMessageId DebugMessageIdUpperBound = 65
constexpr

Definition at line 65 of file DebugMessages.h.

Referenced by DebugMessageLevel(), and ParseDebugMessageId().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors