#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 void ForceAlert ()
 configures the active debugging context to write syslog ALERT 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 52 of file Debug.h.

Member Function Documentation

◆ Enabled()

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

◆ Finish()

void Debug::Finish ( )
static

◆ ForceAlert()

void Debug::ForceAlert ( )
static

Definition at line 858 of file debug.cc.

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

Referenced by ForceAlert().

◆ Level()

static int Debug::Level ( )
inlinestatic

Definition at line 91 of file Debug.h.

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

Referenced by _db_print_stderr(), and debugLogTime().

◆ parseOptions()

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

◆ SectionLevel()

static int Debug::SectionLevel ( )
inlinestatic

◆ Start()

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

Member Data Documentation

◆ cache_log

char * Debug::cache_log = NULL
static

◆ Current

Debug::Context * Debug::Current = nullptr
staticprivate

◆ debugOptions

char * Debug::debugOptions = NULL
static

◆ Levels

◆ log_stderr

int Debug::log_stderr = -1
static

Definition at line 85 of file Debug.h.

Referenced by _db_print_stderr(), mainHandleCommandLineOption(), and watch_child().

◆ log_syslog

bool Debug::log_syslog = false
static

Definition at line 86 of file Debug.h.

Referenced by _db_init(), _db_print_stderr(), and debugOpenLog().

◆ override_X

int Debug::override_X = 0
static

Definition at line 84 of file Debug.h.

Referenced by mainHandleCommandLineOption().

◆ rotateNumber

int Debug::rotateNumber = -1
static

Definition at line 82 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