diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:30:07 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 19:30:07 +0000 |
commit | cc31145e63f9c87e816267e69e73d74e669563a1 (patch) | |
tree | 07a70b1ceef2ce36bf7c29d23f95137cc2ceae09 /hcid/logging.c | |
parent | b945f54411dfde6992f65233e2974b1a1b5b87d3 (diff) |
Add general logging functions
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); +} |