equal
deleted
inserted
replaced
1 /* |
|
2 * |
|
3 */ |
|
4 |
|
5 #ifndef LOGGING_H_ |
1 #ifndef LOGGING_H_ |
6 #define LOGGING_H_ |
2 #define LOGGING_H_ |
7 |
3 |
8 #include<stdint.h> |
4 #include<stdint.h> |
|
5 #include <stdio.h> |
|
6 |
|
7 #define FLIB_LOGLEVEL_ALL -100 |
|
8 #define FLIB_LOGLEVEL_DEBUG -1 |
|
9 #define FLIB_LOGLEVEL_INFO 0 |
|
10 #define FLIB_LOGLEVEL_WARNING 1 |
|
11 #define FLIB_LOGLEVEL_ERROR 2 |
|
12 #define FLIB_LOGLEVEL_NONE 100 |
9 |
13 |
10 char* flib_format_ip(uint32_t numip); |
14 char* flib_format_ip(uint32_t numip); |
11 |
15 |
12 void flib_log_e(const char *fmt, ...); |
16 void flib_log_e(const char *fmt, ...); |
13 void flib_log_w(const char *fmt, ...); |
17 void flib_log_w(const char *fmt, ...); |
14 void flib_log_i(const char *fmt, ...); |
18 void flib_log_i(const char *fmt, ...); |
|
19 void flib_log_d(const char *fmt, ...); |
|
20 |
|
21 int flib_log_getLevel(); |
|
22 void flib_log_setLevel(int level); |
|
23 void flib_log_setFile(FILE *logfile); |
15 |
24 |
16 #endif /* LOGGING_H_ */ |
25 #endif /* LOGGING_H_ */ |