forked from tdhoward/sample-wxwidgets-windows-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogs.h
23 lines (14 loc) · 807 Bytes
/
logs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*--------------------------------------------------------
Handles log file interaction
--------------------------------------------------------*/
#define LOG_CRITICAL 2 // A failure in the system's primary application.
#define LOG_ERROR 3 // e.g. An application has exceeded its file storage limit and attempts to write are failing.
#define LOG_WARNING 4 // May indicate that an error will occur if action is not taken.
#define LOG_INFO 6 // Normal operational messages that require no action.
#define LOG_DEBUG 7 // Debugging info only for developers
#define LOG_FILE_LOCATION "C://app.log"
#define DEBUG_COM_PORT "\\\\.\\COM7"
bool init_logger(int level);
void set_log_level(int level);
void log(int priority, const char *format, ...);
void close_logger();