#define FONT_BLUE "\033[34m" /* for backend logs */
#define FONT_MAGENTA "\033[35m" /* for debug logs */
#define FONT_CYAN "\033[36m" /* for thread logs */
+#define BG_COLOR_GREEN "\033[0;42m"
#ifdef DLOG_DEFAULT_ENABLE
#define LOG_TAG "TPL"
#define tpl_log_b(t, f, x...) LOGI(FONT_BLUE t FONT_DEFAULT " " f, ##x)
#define tpl_log_d(t, f, x...) LOGI(FONT_MAGENTA t FONT_DEFAULT " " f, ##x)
#define tpl_log_t(t, f, x...) LOGI(FONT_CYAN t FONT_DEFAULT " " f, ##x)
+#define tpl_log_i(t, f, x...) LOGI(BG_COLOR_GREEN t FONT_DEFAULT " " f, ##x)
#define tpl_log_e(t, f, x...) LOGE(FONT_RED t " " f FONT_DEFAULT, ##x)
#define tpl_log_w(t, f, x...) LOGW(FONT_YELLOW t " " f FONT_DEFAULT, ##x)
#else /* DLOG_DEFAULT_ENABLE */
#define tpl_log_t(t, f, x...) \
fprintf(stderr, FONT_CYAN t FONT_DEFAULT "[(tid:%li)(%s)]" f "\n", \
syscall(SYS_gettid), __func__, ##x)
+#define tpl_log_i(t, f, x...) \
+ fprintf(stderr, BG_COLOR_GREEN t FONT_DEFAULT "[(tid:%li)(%s)]" f "\n", \
+ syscall(SYS_gettid), __func__, ##x)
#define tpl_log_e(t, f, x...) \
fprintf(stderr, FONT_RED t "[(tid:%li)(%s)] " f FONT_DEFAULT "\n", \
syscall(SYS_gettid), __func__, ##x)
syscall(SYS_gettid), __func__, ##x)
#endif /* DLOG_DEFAULT_ENABLE */
-
+#define TPL_INFO(tag, f, x...) tpl_log_i(tag, f, ##x)
#define TPL_ERR(f, x...) tpl_log_e("[TPL_ERROR]", f, ##x)
#define TPL_WARN(f, x...) tpl_log_w("[TPL_WARNING]", f, ##x)