diff options
Diffstat (limited to 'hcid/logging.c')
-rw-r--r-- | hcid/logging.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hcid/logging.c b/hcid/logging.c index f3bf47c4..9d0ff214 100644 --- a/hcid/logging.c +++ b/hcid/logging.c @@ -27,3 +27,22 @@ #include <stdio.h> #include <errno.h> +#include <stdarg.h> +#include <syslog.h> + +#include "hcid.h" + +void info(const char *format, va_list ap) +{ + vsyslog(LOG_INFO, format, ap); +} + +void error(const char *format, va_list ap) +{ + vsyslog(LOG_ERR, format, ap); +} + +void debug(const char *format, va_list ap) +{ + vsyslog(LOG_DEBUG, format, ap); +} |