Diffstat (limited to 'noncore/net/wellenreiter/libwellenreiter/source/log.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/libwellenreiter/source/log.cc | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/noncore/net/wellenreiter/libwellenreiter/source/log.cc b/noncore/net/wellenreiter/libwellenreiter/source/log.cc deleted file mode 100644 index af7f909..0000000 --- a/noncore/net/wellenreiter/libwellenreiter/source/log.cc +++ b/dev/null @@ -1,51 +0,0 @@ -/* - * Small functions to log to syslog - * - * $Id$ - */ - -#include "log.hh" - -/* Log to syslog INFO */ -void wl_loginfo(const char *fmt,...) -{ - - char buffer[4096]; - va_list ap; - - memset(buffer, 0, sizeof(buffer)); - va_start(ap, fmt); - vsnprintf(buffer, sizeof(buffer)-1, fmt, ap); - va_end(ap); - - openlog("libwellenreiter", LOG_PID, LOG_SYSLOG); - syslog(LOG_INFO, "(info) %s", buffer); - closelog(); - -#ifdef DEBUG - fprintf(stderr, "(info) %s\n", buffer); -#endif - -} - -/* Log to syslog ERR */ -void wl_logerr(const char *fmt,...) -{ - - char buffer[4096]; - va_list ap; - - memset(buffer, 0, sizeof(buffer)); - va_start(ap, fmt); - vsnprintf(buffer, sizeof(buffer)-1, fmt, ap); - va_end(ap); - - openlog("libwellenreiter", LOG_PID, LOG_SYSLOG); - syslog(LOG_INFO, "(err) %s", buffer); - closelog(); - -#ifdef DEBUG - fprintf(stderr, "(err) %s\n", buffer); -#endif - -} |