diff options
Diffstat (limited to 'indi-celestronaux/syslog_proxy.cpp')
-rw-r--r-- | indi-celestronaux/syslog_proxy.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indi-celestronaux/syslog_proxy.cpp b/indi-celestronaux/syslog_proxy.cpp new file mode 100644 index 0000000..d8c1ecf --- /dev/null +++ b/indi-celestronaux/syslog_proxy.cpp @@ -0,0 +1,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); +} + |