This commit is contained in:
2021-02-09 18:32:58 +01:00
parent d86174fc93
commit b240f5b3e4
7 changed files with 147 additions and 147 deletions

13
sink/logging.c Normal file
View 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();
}