EasyLogger icon indicating copy to clipboard operation
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++ 日志库

Results 77 EasyLogger issues
Sort by recently updated
recently updated
newest added

在使用时默认没有颜色输出,查看代码发现默认是关闭颜色输出的,及时定义了ELOG_COLOR_ENABLE,跟逻辑上有点不符啊,希望定义该宏后能默认打开颜色输出。 ![image](https://user-images.githubusercontent.com/33096611/168485445-a69a65f9-7197-41ac-8f5a-89486b82fa84.png)

日志输出到文件时,建议如下 1 提供用户接口,指定输出文件路径+文件名,如果为NULL,则按照默认文件名保存 2 如果用户配置,可以按照天保存到文件中,每天保存为一个文件,文件名可以是log_YYYY_MM_DD.log的形式

你好,博主,能否提供一个集成到cmake,自己的Linux项目的示例呀,我把你的.h 和.cpp都复制到我自己的项目里,然后用cmake编译就出现这种问题了。 Error: no such instruction: `wfi' /home/chen/libevent_server/third_party/include/core_cm3.h:1212: Error: no such instruction: `wfe' third_party/CMakeFiles/easylogger.dir/build.make:989: recipe for target 'third_party/CMakeFiles/easylogger.dir/src/stm32f10x_pwr.c.o' failed make[2]: *** [third_party/CMakeFiles/easylogger.dir/src/stm32f10x_pwr.c.o] Error 1 CMakeFiles/Makefile2:205: recipe for target 'third_party/CMakeFiles/easylogger.dir/all' failed

arm linux环境 ``` (gdb) bt #0 0x0000007f90ea9064 in __lll_lock_wait () from target:/lib64/libpthread.so.0 #1 0x0000007f90ea1a4c in pthread_mutex_lock () from target:/lib64/libpthread.so.0 #2 0x00000000004cad80 in elog_port_output_lock () at ./3rd_lib/easylogger/port/elog_port.c:76 #3 0x00000000004cbf78 in elog_get_filter_tag_lvl...

移植easylogger到linux代码中,使用的是at91的核心板,在使用过程中,发现打印的日志比直接用printf的慢一拍,不知道为什么?明明红框1应该在红框2之前的。 ![微信截图_20211027160317](https://user-images.githubusercontent.com/18344148/139025288-7a47f4c0-9158-4517-8fac-e7eda7cd0f87.png)