#include <stdio.h>
#include <stdarg.h>
#include "common.h"
+#include <syslog.h>
// === CODE ==
void Log_Error(const char *Format, ...)
va_list args;
va_start(args, Format);
- fprintf(stderr, "Error: ");
- vfprintf(stderr, Format, args);
- fprintf(stderr, "\n");
+ vsyslog(LOG_WARNING, Format, args);
va_end(args);
}
va_list args;
va_start(args, Format);
- printf("Info : ");
- vprintf(Format, args);
- printf("\n");
+ vsyslog(LOG_INFO, Format, args);
va_end(args);
}