d7313c955d78ea3928bafdff413e0db5fd5aaf40
[tpg/opendispense2.git] / src / server / logging.c
1 /*
2  * OpenDispense2
3  *
4  * logging.c - Debug/Logging Routines
5  */
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <stdarg.h>
9 #include "common.h"
10 #include <syslog.h>
11
12 // === CODE ==
13 void Log_Error(const char *Format, ...)
14 {
15         va_list args;
16
17         va_start(args, Format);
18         vsyslog(LOG_WARNING, Format, args);
19         va_end(args);
20 }
21
22 void Log_Info(const char *Format, ...)
23 {
24         va_list args;
25         
26         va_start(args, Format);
27         vsyslog(LOG_INFO, Format, args);
28         va_end(args);
29 }
30

UCC git Repository :: git.ucc.asn.au