10 #define LOG_CRITICAL 0
17 char *log_tags[2][5] = { { "[CRITICAL] ",
21 "[INVALID LOG LEVEL] "},
31 extern FILE *set_log_file(char *);
32 extern int get_log_mode();
33 extern void set_log_mode(int);
35 #define print_log(level, ...) do { \
36 time_t _clk = time(NULL); \
37 _print_log(level, __FILE__, __func__, ctime(&_clk), __LINE__, __VA_ARGS__); \
40 extern void _print_log(int, char *, const char *, char*, int, char *, ...);