|
Zero
0.1.0
|
An ErrLog used for tracing (configure –enable-trace) More...
#include <w_debug.h>
Public Member Functions | |
| w_debug (const char *n, const char *f) | |
| ~w_debug () | |
| int | flag_on (const char *fn, const char *file) |
| const char * | flags () |
| void | setflags (const char *newflags) |
| void | memdump (void *p, int len) |
| int | trace_level () |
Private Types | |
| enum | { _all = 0x1, _none = 0x2 } |
Private Member Functions | |
| int | all (void) |
| int | none (void) |
Private Attributes | |
| char * | _flags |
| unsigned int | mask |
| int | _trace_level |
An ErrLog used for tracing (configure –enable-trace)
For tracing to be used, you must set the environment variable DEBUG_FLAGS to a string containing the names of the files you want traced, and
DEBUG_FILE to the name of the output file to which the output should be sent. If DEBUG_FILE is not set, the output goes to stderr.
| w_debug::w_debug | ( | const char * | n, |
| const char * | f | ||
| ) |
| w_debug::~w_debug | ( | ) |
|
inlineprivate |
| int w_debug::flag_on | ( | const char * | fn, |
| const char * | file | ||
| ) |
|
inline |
| void w_debug::memdump | ( | void * | p, |
| int | len | ||
| ) |
|
inlineprivate |
| void w_debug::setflags | ( | const char * | newflags | ) |
|
inline |
|
private |
|
private |
|
private |
1.8.12