123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "common-logging.h"
- #include "syslog.h"
- static bool use_syslog = false;
- void set_use_syslog(const char *name)
- {
-
- openlog(name, LOG_PID, LOG_DAEMON);
- use_syslog = true;
- }
- bool get_use_syslog(void)
- {
- return use_syslog;
- }
|