1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <stdarg.h> extern "C" { #include <syslog.h> }; void syslog_proxy(const char *fmt, ...) { va_list a; va_start(a,fmt); vsyslog(LOG_ERR, fmt, a); va_end(a); } void openlog_proxy(const char *ident) { openlog(ident,0,LOG_DAEMON); }