MLIB
|
Implementation of syslog functions. More...
Macros | |
#define | _WINSOCK_DEPRECATED_NO_WARNINGS |
#define | LOG_DGRAM_SIZE 1024 |
#define | SERVER_INI_KEY "LogServername" |
#define | FILE_INI_KEY "LogFilename" |
#define | FLAGS_INI_KEY "LogOptions" |
#define | PRI_INI_KEY "LogPriorityMask" |
#define | DEFAULT_FLAGS 0 |
#define | DEFAULT_PRIMASK 0xff |
#define | DEFAULT_SERVERNAME "localhost" |
#define | DEFAULT_FACILITY LOG_USER |
Functions | |
void | openlog (const char *ident, int option, int facility) |
Open connection to logger. | |
void | closelog () |
closelog also resets the identification string for syslog messages back to the default, if openlog was called with a non-NULL argument to ident. | |
void | syslog (int facility_priority, const char *fmt,...) |
Generate a log message using FMT string and option arguments. | |
bool | syslog_debug (const char *fmt,...) |
Generate a log message at debug level using FMT string and option arguments. | |
int | setlogmask (int mask) |
The setlogmask() function sets this logmask for the current process, and returns the previous mask. | |
int | setlogopt (int opt) |
Set option flags. | |
Implementation of syslog functions.