config
This commit is contained in:
13
sink/logging.c
Normal file
13
sink/logging.c
Normal file
@ -0,0 +1,13 @@
|
||||
#include <syslog.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
void logmsg(int prio, const char* format, ...) {
|
||||
va_list vl;
|
||||
|
||||
openlog("counter", 0, LOG_LOCAL0);
|
||||
va_start(vl, format);
|
||||
vsyslog(prio, format, vl);
|
||||
va_end(vl);
|
||||
closelog();
|
||||
}
|
||||
|
Reference in New Issue
Block a user