#include <Debug.h>

Collaboration diagram for Debug:

Classes

class  Context
 meta-information for debugs() or a similar debugging call More...
 

Static Public Member Functions

static bool Enabled (const int section, const int level)
 whether debugging the given section and the given level produces output More...
 
static void parseOptions (char const *)
 
static int Level ()
 minimum level required by the current debugs() call More...
 
static int SectionLevel ()
 maximum level currently allowed More...
 
static std::ostringstream & Start (const int section, const int level)
 opens debugging context and returns output buffer More...
 
static void Finish ()
 logs output buffer created in Start() and closes debugging context More...
 

Static Public Attributes

static char * debugOptions = NULL
 
static char * cache_log = NULL
 
static int rotateNumber = -1
 
static int Levels [MAX_DEBUG_SECTIONS]
 
static int override_X = 0
 
static int log_stderr = -1
 
static bool log_syslog = false
 

Static Private Attributes

static ContextCurrent = nullptr
 deepest active context; nil outside debugs() More...
 

Detailed Description

Definition at line 51 of file Debug.h.

Member Function Documentation

static bool Debug::Enabled ( const int  section,
const int  level 
)
inlinestatic
void Debug::Finish ( )
static

Definition at line 836 of file debug.cc.

References _db_print(), Debug::Context::buf, Current, and Debug::Context::upper.

Referenced by Adaptation::Ecap::Host::closeDebug().

static int Debug::Level ( )
inlinestatic

Definition at line 89 of file Debug.h.

References Current, and Debug::Context::level.

Referenced by _db_print_stderr(), and debugLogTime().

void Debug::parseOptions ( char const *  options)
static

Definition at line 456 of file debug.cc.

References debugArg(), debugs, i, Levels, MAX_DEBUG_SECTIONS, NULL, override_X, p, w_space, xfree, and xstrdup.

Referenced by _db_init(), mainParseOptions(), sigusr2_handle(), and SquidMain().

static int Debug::SectionLevel ( )
inlinestatic

Definition at line 91 of file Debug.h.

References Current, and Debug::Context::sectionLevel.

Referenced by Raw::print().

std::ostringstream & Debug::Start ( const int  section,
const int  level 
)
static

Definition at line 815 of file debug.cc.

References Debug::Context::buf, Current, and Debug::Context::rewind().

Referenced by Adaptation::Ecap::Host::openDebug().

Member Data Documentation

char * Debug::cache_log = NULL
static
Debug::Context * Debug::Current = nullptr
staticprivate

Definition at line 99 of file Debug.h.

Referenced by Finish(), Level(), Debug::Context::rewind(), SectionLevel(), and Start().

char * Debug::debugOptions = NULL
static
int Debug::log_stderr = -1
static

Definition at line 83 of file Debug.h.

Referenced by _db_print_stderr(), fatal_common(), mainParseOptions(), and watch_child().

bool Debug::log_syslog = false
static

Definition at line 84 of file Debug.h.

Referenced by _db_init().

int Debug::override_X = 0
static

Definition at line 82 of file Debug.h.

Referenced by mainParseOptions(), and parseOptions().

int Debug::rotateNumber = -1
static

Definition at line 80 of file Debug.h.

Referenced by _db_rotate_log(), configDoConfigure(), and debugArg().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors