Files | |
| file | gossip.c |
| file | gossip.h |
Functions | |
| int | gossip_enable_syslog (int priority) |
| int | gossip_enable_stderr (void) |
| int | gossip_enable_file (const char *filename, const char *mode) |
| int | gossip_disable (void) |
| int | gossip_set_debug_mask (int debug_on, uint64_t mask) |
| int | gossip_get_debug_mask (int *debug_on, uint64_t *mask) |
| int | gossip_err (const char *format,...) |
It uses printf style formatting and provides several mechanisms for output.
|
|
Turns off any active logging facility and disables debugging.
|
|
||||||||||||
|
Turns on logging to a file. The filename argument indicates which file to use for logging messages, and the mode indicates whether the file should be truncated or appended (see fopen() man page).
|
Here is the call graph for this function:

|
|
Turns on logging to stderr.
|
Here is the call graph for this function:

|
|
Turns on syslog logging facility. The priority argument is a combination of the facility and level to use, as seen in the syslog(3) man page.
|
Here is the call graph for this function:

|
||||||||||||
|
Logs a critical error message. This will print regardless of the mask value and whether debugging is turned on or off, as long as some logging facility has been enabled.
|
|
||||||||||||
|
Fills in args indicating whether debugging is on or off, and what the mask level is.
|
|
||||||||||||
|
Determines whether debugging messages are turned on or off. Also specifies the mask that determines which debugging messages are printed.
|
1.3.5