-#include "log.h"
-
+#include <assert.h>
+#include <errno.h>
+#include <stdarg.h>
+#include <stddef.h>
#include <stdio.h>
#include <string.h>
-#include <stdarg.h>
#include <syslog.h>
-#include <assert.h>
-#include <errno.h>
#include <string>
#include <vector>
+#include "log.h"
+
using namespace std;
// Yes, it's a bit ugly.
int syslog_level;
switch (log_level) {
- case NO_LEVEL:
- log_level_str = "";
- syslog_level = LOG_INFO;
- break;
case INFO:
log_level_str = "INFO: ";
syslog_level = LOG_INFO;