#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.
◆ debug_log
◆ debugs
#define debugs |
( |
|
SECTION, |
|
|
|
LEVEL, |
|
|
|
CONTENT |
|
) |
| |
Value: do { \
const int _dbg_level = (LEVEL); \
_dbo << (SECTION) << ',' << _dbg_level << "| " \
} \
} \
} 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 void Finish()
logs output buffer created in Start() and closes debugging context
static std::ostringstream & Start(const int section, const int level)
opens debugging context and returns output buffer
Definition at line 194 of file Stream.h.
◆ MAX_DEBUG_SECTIONS
#define MAX_DEBUG_SECTIONS 100 |
◆ MYNAME
#define MYNAME __FUNCTION__ << " " |
◆ _db_rotate_log()
void _db_rotate_log |
( |
void |
| ) |
|
Definition at line 1157 of file debug.cc.
References Debug::cache_log, DebugFile::clear(), DBG_IMPORTANT, debugOpenLog(), debugs, MAXPATHLEN, DebugFile::name, Debug::rotateNumber, sb, TheLog, and xstrerr().
Referenced by mainRotate().
◆ DebugStream()
cache.log FILE or, as the last resort, stderr stream; may be nil during static initialization and destruction!
Definition at line 354 of file debug.cc.
References DebugFile::file(), and TheLog.
◆ ForceAlert()
std::ostream & ForceAlert |
( |
std::ostream & |
s | ) |
|
◆ HERE()
std::ostream & HERE |
( |
std::ostream & |
s | ) |
|
|
inline |
stream manipulator which does nothing.
- Deprecated:
- Do not add to new code, and remove when editing old code
Its purpose is to inactivate calls made following previous debugs() guidelines such as debugs(1,2, "some message");
His former objective is now absorbed in the debugs call itself
Definition at line 223 of file Stream.h.
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const uint8_t |
d |
|
) |
| |
|
inline |
◆ ResyncDebugLog()
void ResyncDebugLog |
( |
FILE * |
newDestination | ) |
|