EasyLogger
                                
                                
                                
                                    EasyLogger copied to clipboard
                            
                            
                            
                        An ultra-lightweight(ROM<1.6K, RAM<0.3k), high-performance C/C++ log library. | 一款超轻量级(ROM<1.6K, RAM<0.3k)、高性能的 C/C++ 日志库
过滤的代码逻辑是不是搞反了?比如调用:elog_set_filter_tag("main");时,用意应该是过滤掉所有的tag是main的打印,而elog_output输出时,却是用:else if (!strstr(name, elog.filter.tag)) { /* tag filter */ 进行过滤判断,就达不到过滤main标签的目的,应该改为else if ((NULL != strstr(tag, elog.filter.tag))&&(strlen(elog.filter.tag)>0)),其它几处判断也是类似
版本:EasyLogger V2.0.0 is initialize success ElogErrCode elog_init(void) { ...... #ifdef ELOG_COLOR_ENABLE /* disable text color by default */ elog_set_text_color_enabled(false); #endif ...... } void elog_output(...) { #ifdef ELOG_COLOR_ENABLE /* add CSI...
MCU是STM32L4,使用ST的HAL库,FreeRTOS下移植使用信号量进行elog_port_output_lock和elog_port_output_unlock,有时候会导致STM32不能进入不能进入外部中断函数,请问该怎么解决?谢谢! static SemaphoreHandle_t log_sem; /** * EasyLogger port initialize * * @return result */ ElogErrCode elog_port_init(void) { ElogErrCode result = ELOG_NO_ERR; /* add your code here */ log_sem = xSemaphoreCreateBinary();...
一个进程中有多个文件使用elog,是每个文件里都需要初始化,还是主程序初始化一次,其他的直接调打印log的函数就可以了
continue_ff