From cc31145e63f9c87e816267e69e73d74e669563a1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 9 Mar 2006 19:30:07 +0000 Subject: Add general logging functions --- hcid/logging.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hcid/logging.c') 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 #include +#include +#include + +#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); +} -- cgit