#include "services.h"
#include "log.h"
Go to the source code of this file.
Defines | |
#define | NUM_LOG_ENTRIES 100 |
Number of log entries to keep in the debug log. | |
#define | LOG_ENTRY_SIZE 200 |
Size of a debug log entry. | |
Functions | |
void | dlogInit (void) |
Initialize debug logging at bootup. | |
void | dlogEntry (char *format,...) |
Store a log entry in the debug-log stack. | |
void | dlogDump (FILE *fp) |
Services crash or request, dump debug log entries to file. | |
void | logDump (FILE *fp, char *format,...) |
Dump a single log item directly to file. | |
const char * | fullhost1 (const UserList *nick) |
Get a user's full host mask in a NUL-terminated string form. | |
Variables | |
const char * | nullFmtHack = (const char *)0 |
Used to default NULL format without triggering compiler warnings. | |
char * | log_entry [NUM_LOG_ENTRIES] |
The log entries. | |
int | next_entry |
Next entry goes where? | |
int | num_entries |
Number entries present? |
This module implements the basic services command/event logging system.
James Hess
Definition in file log.cc.
|
Get a user's full host mask in a NUL-terminated string form.
Definition at line 260 of file log.cc. References _userlist::host, _userlist::nick, and _userlist::user. |