19#define STUB_API "debug/libdebug.la"
45 const static std::ostringstream cleanStream;
46 buf.flags(cleanStream.flags() | std::ios::fixed);
47 buf.width(cleanStream.width());
61 fprintf(stderr,
"%s| %s\n",
63 context.buf.str().c_str());
78Debug::parseOptions(
char const *)
86 sectionLevel(Levels[aSection]),
96 Current =
new Context(section, level);
#define STUB
macro to stub a void function.
meta-information for debugs() or a similar debugging call
std::ostringstream buf
debugs() output sink
Context(const int aSectionLevel, const int aLevel)
static bool StderrEnabled()
static Context * Current
deepest active context; nil outside debugs()
static std::ostream & Extra(std::ostream &)
static void LogMessage(const Context &)
broadcasts debugs() message to the logging channels
static int Levels[MAX_DEBUG_SECTIONS]
static void Finish()
logs output buffer created in Start() and closes debugging context
static char * debugOptions
static void FormatStream(std::ostream &)
configures default formatting for the debugging stream
static std::ostringstream & Start(const int section, const int level)
opens debugging context and returns output buffer
static void ForceAlert()
configures the active debugging context to write syslog ALERT
#define MAX_DEBUG_SECTIONS
void ResyncDebugLog(FILE *newFile)
a hack for low-level file descriptor manipulations in ipcCreate()
void _db_rotate_log(void)
std::ostream & ForceAlert(std::ostream &s)