27#define LV_LOG_LEVEL_TRACE 0
28#define LV_LOG_LEVEL_INFO 1
29#define LV_LOG_LEVEL_WARN 2
30#define LV_LOG_LEVEL_ERROR 3
31#define LV_LOG_LEVEL_USER 4
32#define LV_LOG_LEVEL_NONE 5
33#define _LV_LOG_LEVEL_NUM 6
42typedef int8_t lv_log_level_t;
52typedef void (*lv_log_print_g_cb_t)(
const char * buf);
64void lv_log_register_print_cb(lv_log_print_g_cb_t print_cb);
72void lv_log(
const char * format, ...) LV_FORMAT_ATTRIBUTE(1, 2);
83void _lv_log_add(lv_log_level_t level, const
char * file,
int line,
84 const
char * func, const
char * format, ...) LV_FORMAT_ATTRIBUTE(5, 6);
90# if LV_LOG_LEVEL <= LV_LOG_LEVEL_TRACE
91# define LV_LOG_TRACE(...) _lv_log_add(LV_LOG_LEVEL_TRACE, __FILE__, __LINE__, __func__, __VA_ARGS__)
93# define LV_LOG_TRACE(...) do {}while(0)
98# if LV_LOG_LEVEL <= LV_LOG_LEVEL_INFO
99# define LV_LOG_INFO(...) _lv_log_add(LV_LOG_LEVEL_INFO, __FILE__, __LINE__, __func__, __VA_ARGS__)
101# define LV_LOG_INFO(...) do {}while(0)
106# if LV_LOG_LEVEL <= LV_LOG_LEVEL_WARN
107# define LV_LOG_WARN(...) _lv_log_add(LV_LOG_LEVEL_WARN, __FILE__, __LINE__, __func__, __VA_ARGS__)
109# define LV_LOG_WARN(...) do {}while(0)
114# if LV_LOG_LEVEL <= LV_LOG_LEVEL_ERROR
115# define LV_LOG_ERROR(...) _lv_log_add(LV_LOG_LEVEL_ERROR, __FILE__, __LINE__, __func__, __VA_ARGS__)
117# define LV_LOG_ERROR(...) do {}while(0)
122# if LV_LOG_LEVEL <= LV_LOG_LEVEL_USER
123# define LV_LOG_USER(...) _lv_log_add(LV_LOG_LEVEL_USER, __FILE__, __LINE__, __func__, __VA_ARGS__)
125# define LV_LOG_USER(...) do {}while(0)
130# if LV_LOG_LEVEL < LV_LOG_LEVEL_NONE
131# define LV_LOG(...) lv_log(__VA_ARGS__)
133# define LV_LOG(...) do {} while(0)
140#define _lv_log_add(level, file, line, ...)
141#define LV_LOG_TRACE(...) do {}while(0)
142#define LV_LOG_INFO(...) do {}while(0)
143#define LV_LOG_WARN(...) do {}while(0)
144#define LV_LOG_ERROR(...) do {}while(0)
145#define LV_LOG_USER(...) do {}while(0)
146#define LV_LOG(...) do {}while(0)
#define LV_LOG_LEVEL_ERROR
Definition lv_log.h:30
#define LV_LOG_LEVEL_INFO
Definition lv_log.h:28
#define LV_LOG_LEVEL_TRACE
Definition lv_log.h:27
#define LV_LOG_LEVEL_USER
Definition lv_log.h:31
#define LV_LOG_LEVEL_NONE
Definition lv_log.h:32
#define LV_LOG_LEVEL_WARN
Definition lv_log.h:29