stub_debug.cc File Reference
#include "squid.h"
#include "Debug.h"
#include "tests/STUB.h"
Include dependency graph for stub_debug.cc:

Go to the source code of this file.

Macros

#define STUB_API   "debug.cc"
 

Functions

Ctx ctx_enter (const char *)
 
void ctx_exit (Ctx)
 
void _db_init (const char *, const char *)
 
void _db_set_syslog (const char *)
 
void _db_rotate_log (void)
 
static void _db_print_stderr (const char *format, va_list args)
 
void _db_print (const char *format,...)
 
std::ostream & ForceAlert (std::ostream &s)
 

Macro Definition Documentation

#define STUB_API   "debug.cc"

Definition at line 19 of file stub_debug.cc.

Function Documentation

void _db_init ( const char *  ,
const char *   
)

Definition at line 51 of file stub_debug.cc.

References APP_SHORTNAME, debugOpenLog(), Debug::log_syslog, and Debug::parseOptions().

void _db_print ( const char *  format,
  ... 
)

Definition at line 66 of file stub_debug.cc.

References _db_print_stderr(), and BUFSIZ.

static void _db_print_stderr ( const char *  format,
va_list  args 
)
static

Definition at line 89 of file stub_debug.cc.

References Debug::Level().

Referenced by _db_print().

void _db_rotate_log ( void  )
void _db_set_syslog ( const char *  )

Definition at line 55 of file stub_debug.cc.

Referenced by mainHandleCommandLineOption().

Ctx ctx_enter ( const char *  )

Definition at line 41 of file stub_debug.cc.

References Ctx_Current_Level, CTX_MAX_LEVEL, DBG_CRITICAL, and debugs.

void ctx_exit ( Ctx  )

Definition at line 47 of file stub_debug.cc.

References assert, and Ctx_Current_Level.

std::ostream& ForceAlert ( std::ostream &  s)

Does not change the stream being manipulated. Exists for its side effect: In a debugs() context, forces the message to become a syslog ALERT. Outside of debugs() context, has no effect and should not be used.

Definition at line 130 of file stub_debug.cc.

References Debug::ForceAlert().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors