11#if __has_include("defs.h")
18#define LOG_USER (1 << 3)
45#define LOG_PRIMASK 0x7
46#define LOG_FACMASK 0x03f8
47#define LOG_MASK(pri) (1 << (pri))
48#define LOG_UPTO(pri) ((1 << ((pri) + 1)) - 1)
50#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
66#define LOG_ODELAY 0x04
67#define LOG_NDELAY 0x08
68#define LOG_NOWAIT 0x10
69#define LOG_PERROR 0x20
72#define LOGOPT_PID 0x01
73#define LOGOPT_OUTDEBUG 0x02
75#define LOGOPT_NOUDP 0x40
76#define LOGOPT_FILE 0x80
90 void openlog (
const char* ident,
int option,
int facility);
99 void syslog (
int facility_priority,
const char* fmt, ...);
void closelog(void)
Close connection to logger.
Definition log.cpp:234
void openlog(const char *ident, int option, int facility)
Open connection to logger.
Definition log.cpp:157
int setlogmask(int mask)
Set the log mask level.
Definition log.cpp:401
void syslog(int facility_priority, const char *fmt,...)
Generate a log message using FMT string and option arguments.
Definition log.cpp:279
int setlogopt(int opt)
Set option flags.
Definition log.cpp:427
char log_fname[_MAX_PATH]
Log filename if LOGOPT_FILE flag is set.
Definition log.cpp:44
int log_defaultopt
Default log options - combination of LOGOPT_... flags.
Definition log.cpp:41
bool syslog_debug(const char *fmt,...)
Generate a log message at debug level using FMT string and option arguments.
Definition log.cpp:318
char log_servhostname[_MAX_PATH]
Destination host for UDP datagrams. Default is "localhost".
Definition log.cpp:43