#include "config.h"#include "Debug.h"#include "SquidTime.h"#include "util.h"#include "ipc/Kids.h"#include "globals.h"
Go to the source code of this file.
Defines | |
| #define | CTX_MAX_LEVEL 255 |
Functions | |
| static const char * | debugLogTime (void) |
| static const char * | debugLogKid (void) |
| static void | ctx_print (void) |
| static void | _db_print_stderr (const char *format, va_list args) |
| static void | _db_print_file (const char *format, va_list args) |
| void | _db_print (const char *format,...) |
| static void | debugArg (const char *arg) |
| static void | debugOpenLog (const char *logfile) |
| void | _db_init (const char *logfile, const char *options) |
| void | _db_rotate_log (void) |
| void | xassert (const char *msg, const char *file, int line) |
| static const char * | ctx_get_descr (Ctx ctx) |
| Ctx | ctx_enter (const char *descr) |
| void | ctx_exit (Ctx ctx) |
| const size_t | BuildPrefixInit () |
| const char * | SkipBuildPrefix (const char *path) |
Variables | |
| FILE * | debug_log = NULL |
| static char * | debug_log_file = NULL |
| static int | Ctx_Lock = 0 |
| static int | Ctx_Warn_Level = 32 |
| static int | Ctx_Reported_Level = -1 |
| static int | Ctx_Valid_Level = -1 |
| static int | Ctx_Current_Level = -1 |
| static const char * | Ctx_Descrs [CTX_MAX_LEVEL+1] |
Define Documentation
| #define CTX_MAX_LEVEL 255 |
Definition at line 646 of file debug.cc.
Referenced by ctx_enter(), and ctx_get_descr().
Function Documentation
| void _db_init | ( | const char * | logfile, | |
| const char * | options | |||
| ) |
Definition at line 445 of file debug.cc.
References APP_SHORTNAME, debugOpenLog(), Debug::log_syslog, and Debug::parseOptions().
Referenced by main(), mainInitialize(), mainReconfigureFinish(), IcmpPinger::Open(), and parseConfigFile().
| void _db_print | ( | const char * | format, | |
| ... | ||||
| ) |
Definition at line 73 of file debug.cc.
Referenced by ctx_print(), debug_trap(), and Debug::finishDebug().
| static void _db_print_file | ( | const char * | format, | |
| va_list | args | |||
| ) | [static] |
Definition at line 144 of file debug.cc.
References Ctx_Lock, ctx_print(), debug_log, and NULL.
Referenced by _db_print().
| static void _db_print_stderr | ( | const char * | format, | |
| va_list | args | |||
| ) | [static] |
Definition at line 158 of file debug.cc.
References debug_log, Debug::level, and Debug::log_stderr.
Referenced by _db_print().
| void _db_rotate_log | ( | void | ) |
Definition at line 463 of file debug.cc.
References Debug::cache_log, debug_log, debug_log_file, debugOpenLog(), i, MAXPATHLEN, NULL, and Debug::rotateNumber.
Referenced by mainRotate().
| const size_t BuildPrefixInit | ( | ) |
Definition at line 787 of file debug.cc.
Referenced by SkipBuildPrefix().
| Ctx ctx_enter | ( | const char * | descr | ) |
Definition at line 666 of file debug.cc.
Referenced by HttpStateData::haveParsedReplyHeaders(), HttpStateData::processReplyHeader(), and MemObject::~MemObject().
| void ctx_exit | ( | Ctx | ctx | ) |
Definition at line 682 of file debug.cc.
Referenced by HttpStateData::haveParsedReplyHeaders(), HttpStateData::processReplyHeader(), and MemObject::~MemObject().
| static const char * ctx_get_descr | ( | Ctx | ctx | ) | [static] |
| static void ctx_print | ( | void | ) | [static] |
Definition at line 696 of file debug.cc.
References _db_print(), ctx_get_descr(), and Ctx_Lock.
Referenced by _db_print(), and _db_print_file().
| static void debugArg | ( | const char * | arg | ) | [static] |
Definition at line 193 of file debug.cc.
References assert, i, Debug::Levels, MAX_DEBUG_SECTIONS, and Debug::rotateNumber.
Referenced by Debug::parseOptions().
| static const char * debugLogKid | ( | void | ) | [static] |
| static const char * debugLogTime | ( | void | ) | [static] |
Definition at line 523 of file debug.cc.
References current_time, getCurrentTime(), and Debug::level.
Referenced by _db_print().
| static void debugOpenLog | ( | const char * | logfile | ) | [static] |
Definition at line 233 of file debug.cc.
References debug_log, debug_log_file, NULL, O_TEXT, xfree, and xstrdup().
Referenced by _db_init(), and _db_rotate_log().
| void xassert | ( | const char * | msg, | |
| const char * | file, | |||
| int | line | |||
| ) |
Definition at line 563 of file debug.cc.
References debugs, and shutting_down.
Variable Documentation
int Ctx_Current_Level = -1 [static] |
const char* Ctx_Descrs[CTX_MAX_LEVEL+1] [static] |
int Ctx_Lock = 0 [static] |
Definition at line 54 of file debug.cc.
Referenced by _db_print(), _db_print_file(), and ctx_print().
int Ctx_Reported_Level = -1 [static] |
int Ctx_Valid_Level = -1 [static] |
int Ctx_Warn_Level = 32 [static] |
| FILE* debug_log = NULL |
Definition at line 52 of file debug.cc.
Referenced by _db_print(), _db_print_file(), _db_print_stderr(), _db_rotate_log(), checkRunningPid(), clientNegotiateSSL(), death(), debugOpenLog(), dumpMallocStats(), fatal_common(), fdDumpOpen(), ipc_thread_1(), ipcCreate(), logsFlush(), mainInitialize(), PrintRusage(), sendSignal(), SquidMain(), and ssl_temp_rsa_cb().
char* debug_log_file = NULL [static] |
Definition at line 53 of file debug.cc.
Referenced by _db_rotate_log(), and debugOpenLog().
Search
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Help Out
- Getting Squid
- Donate
- Squid Deployment Case-Studies
Documentation
- FAQ | Wiki | Book
- Configuration Reference
- Configuration Guide - Visolve
- Configuration Examples
- Users guide
- Non-English
- Security Advisories
- More...
Support
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
