|
static size_t | xf_log_vprintf (xf_log_out_t log_out, void *arg, const char *format, va_list va) |
|
static size_t | xf_log_color_format (int log_obj_id, uint8_t level, const char *tag, const char *file, uint32_t line, const char *func, const char *fmt, va_list va) |
|
int | xf_log_register_obj (xf_log_out_t out_func, void *user_args) |
| 注册log后端是输出到哪里,其最大值受到 XF_LOG_OBJ_MAX 的限制
|
|
void | xf_log_set_filter_enable (int log_obj_id) |
| 启用过滤器
|
|
void | xf_log_set_filter_disable (int log_obj_id) |
| 禁用过滤器
|
|
void | xf_log_set_filter_colorful_enable (int log_obj_id) |
| 开启彩色显示
|
|
void | xf_log_set_filter_colorful_disable (int log_obj_id) |
| 关闭彩色显示
|
|
void | xf_log_set_filter_is_blacklist (int log_obj_id) |
| 设置过滤器为黑名单(其内容将被过滤)
|
|
void | xf_log_set_filter_is_whitelist (int log_obj_id) |
| 设置过滤器为白名单(仅其内容将被暴露)
|
|
void | xf_log_set_filter_tag (int log_obj_id, const char *tag) |
| 设置过滤器的标签过滤
|
|
void | xf_log_set_filter_level (int log_obj_id, uint8_t level) |
| 设置过滤器的等级过滤
|
|
void | xf_log_set_filter_file (int log_obj_id, const char *file) |
| 设置过滤器的文件过滤
|
|
void | xf_log_set_info_level (int log_obj_id, uint8_t level) |
| 显示文件函数等信息的最小等级
|
|
void | xf_log_set_time_func (xf_log_time_func_t log_time_func) |
| 设置log的时间戳打印函数
|
|
size_t | xf_log (uint8_t level, const char *tag, const char *file, uint32_t line, const char *func, const char *fmt,...) |
| log打印函数
|
|
size_t | xf_log_printf (const char *format,...) |
| 朴实无华的打印函数
|
|
static void | find_args_from_index (va_list *va, size_t index) |
|
static size_t | xf_log_printf_out (xf_log_out_t log_out, void *arg, const char *format,...) |
|