6 #define BLACK "\033[30m"
8 #define GREEN "\033[32m"
9 #define YELLOW "\033[33m"
10 #define BLUE "\033[34m"
11 #define PURPLE "\033[35m"
12 #define DGREEN "\033[6m"
13 #define WHITE "\033[7m"
14 #define CYAN "\x1b[36m"
15 #define NONE "\033[0m"
19 #define TRACE_DEBUG_JSON(fmt, args...)
20 #define TRACE_DEBUG(fmt, args...)
21 #define TRACE_INFO(fmt, args...)
22 #define TRACE_WARN(fmt, args...)
23 #define TRACE_ERROR(fmt, args...)
27 #define TRACE_DEBUG(fmt, args...) do { fprintf(stderr, "[%s:%d] " CYAN "DEBUG" NONE ": " fmt "\n", __func__, __LINE__, ##args); } while(0)
28 #define TRACE_INFO(fmt, args...) do { fprintf(stderr, "[%s:%d] " GREEN "INFO" NONE ": " fmt "\n", __func__, __LINE__, ##args); } while(0)
29 #define TRACE_WARN(fmt, args...) do { fprintf(stderr, "[%s:%d] " YELLOW "WARN" NONE": " fmt "\n", __func__, __LINE__, ##args); } while(0)
30 #define TRACE_ERROR(fmt, args...) do { fprintf(stderr, "[%s:%d] " RED "ERROR" NONE ": " fmt "\n", __func__, __LINE__, ##args); } while(0)
32 #define TRACE_DEBUG_JSON(fmt, args...)