Initial commit

This commit is contained in:
2020-06-17 09:06:02 +02:00
commit 9552a54c3d
12 changed files with 185 additions and 0 deletions

13
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("mqttauditing", 0, LOG_LOCAL0);
va_start(vl, format);
vsyslog(prio, format, vl);
va_end(vl);
closelog();
}