#include "base/Here.h"
#include "mem/AllocatorProxy.h"
#include <iostream>
#include <sstream>
#include <iomanip>
Go to the source code of this file.
◆ assert
| #define assert |
( |
|
EX | ) |
((EX)?((void)0):xassert( # EX , __FILE__, __LINE__)) |
◆ DBG_CRITICAL
critical messages always shown when they occur
Definition at line 37 of file Stream.h.
◆ DBG_DATA
output is a large data dump only necessary for advanced debugging
Definition at line 40 of file Stream.h.
◆ DBG_IMPORTANT
important messages always shown when their section is being checked
Definition at line 38 of file Stream.h.
◆ DBG_PARSE_NOTE
output is always to be displayed on '-k parse' but at level-x normally.
Definition at line 42 of file Stream.h.
◆ debugs
| #define debugs |
( |
|
SECTION, |
|
|
|
LEVEL, |
|
|
|
CONTENT |
|
) |
| |
Value: do { \
const int _dbg_level = (LEVEL); \
_dbo << (SECTION) << ',' << _dbg_level << "| " \
} \
_dbo << CONTENT; \
Debug::Finish(); \
} \
} while ( 0)
#define Here()
source code location of the caller
static bool Enabled(const int section, const int level)
whether debugging the given section and the given level produces output
static std::ostringstream & Start(const int section, const int level)
opens debugging context and returns output buffer
Definition at line 192 of file Stream.h.
◆ MAX_DEBUG_SECTIONS
| #define MAX_DEBUG_SECTIONS 100 |
◆ MYNAME
| #define MYNAME __func__ << " " |
◆ _db_rotate_log()
| void _db_rotate_log |
( |
void |
| ) |
|
◆ 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 | ) |
|
◆ operator<<()
| std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const uint8_t |
d |
|
) |
| |
|
inline |
◆ ResyncDebugLog()
| void ResyncDebugLog |
( |
FILE * |
newDestination | ) |
|