libdballe  5.18
Defines | Enumerations | Functions
verbose.h File Reference

Debugging aid framework that allows to print, at user request, runtime verbose messages about internal status and operation. More...

Go to the source code of this file.

Defines

#define DBA_VERBOSE_STREAM   stderr
 The output stream where verbose messages will be sent.

Enumerations

enum  { DBA_VERB_NONE = 0, DBA_VERB_DB_INPUT = 1, DBA_VERB_DB_SQL = 2, DBA_VERB_BUFREX_MSG = 4 }
 The various contexts for verbose messages (they will be OR-ed together)

Functions

void dba_verbose_init ()
 Initialize the verbose printing interface, taking the allowed verbose level from the environment and printing a little informational banner if any level of verbose messages are enabled.
int dba_verbose_is_allowed (int lev)
 Return 1 if the given verbose level has been requested in output, else 0.
void dba_verbose (int lev, const char *fmt,...)
 Output a message on the verbose stream, if the given level of verbosity has been requested.

Detailed Description

Debugging aid framework that allows to print, at user request, runtime verbose messages about internal status and operation.