#include "base/Here.h"
#include "mem/AllocatorProxy.h"
#include <iostream>
#include <sstream>
#include <iomanip>

Go to the source code of this file.
Classes | |
class | Debug |
class | Debug::Context |
meta-information for debugs() or a similar debugging call More... | |
Macros | |
#define | assert(EX) ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__)) |
#define | MAX_DEBUG_SECTIONS 100 |
#define | DBG_CRITICAL 0 |
#define | DBG_IMPORTANT 1 |
#define | DBG_DATA 9 |
#define | DBG_PARSE_NOTE(x) (opt_parse_cfg_only?0:(x)) |
#define | debugs(SECTION, LEVEL, CONTENT) |
#define | MYNAME __func__ << " " |
Functions | |
FILE * | DebugStream () |
void | ResyncDebugLog (FILE *newDestination) |
a hack for low-level file descriptor manipulations in ipcCreate() More... | |
std::ostream & | ForceAlert (std::ostream &s) |
std::ostream & | operator<< (std::ostream &os, const uint8_t d) |
void | _db_rotate_log (void) |
Macro Definition Documentation
◆ assert
#define assert | ( | EX | ) | ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__)) |
◆ DBG_CRITICAL
#define DBG_CRITICAL 0 |
◆ DBG_DATA
#define DBG_DATA 9 |
◆ DBG_IMPORTANT
#define DBG_IMPORTANT 1 |
◆ DBG_PARSE_NOTE
#define DBG_PARSE_NOTE | ( | x | ) | (opt_parse_cfg_only?0:(x)) |
◆ debugs
#define debugs | ( | SECTION, | |
LEVEL, | |||
CONTENT | |||
) |
◆ MAX_DEBUG_SECTIONS
◆ MYNAME
Function Documentation
◆ _db_rotate_log()
void _db_rotate_log | ( | void | ) |
Definition at line 1160 of file debug.cc.
References Debug::cache_log, DebugFile::clear(), DBG_IMPORTANT, debugOpenLog(), debugs, MAXPATHLEN, DebugFile::name, Debug::rotateNumber, TheLog, and xstrerr().
Referenced by mainRotate().
◆ DebugStream()
FILE* DebugStream | ( | ) |
cache.log FILE or, as the last resort, stderr stream; may be nil during static initialization and destruction!
Definition at line 355 of file debug.cc.
References DebugFile::file(), and TheLog.
Referenced by clientNegotiateSSL(), death(), dumpMallocStats(), fdDumpOpen(), ipc_thread_1(), ipcCreate(), logsFlush(), and PrintRusage().
◆ ForceAlert()
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 1411 of file debug.cc.
References Debug::ForceAlert().
Referenced by death(), and fatal_common().
◆ operator<<()
|
inline |
◆ ResyncDebugLog()
void ResyncDebugLog | ( | FILE * | newDestination | ) |
Definition at line 515 of file debug.cc.
References DebugFile::file_, and TheLog.
Referenced by ipcCreate().
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products