-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问你们是否接受如下修改的PR #167
Comments
感谢你的反馈哈
其实是是可以在 elog_cfg.h 中配置
其实 hexdump 在设计之处就是调试使用的,如果其他级别还需要用到 hexdump 是不是这些日志的级别没有选好呢?能否说一下其他级别使用 hexdump 的大概场景?
我理解这个功能应该是已经有的?每个文件都是可以设置不同的 tag ,也可以设置不能 level,能否讲具体一些呢? |
|
//WiFi 协议处理(位于 /wifi/proto.c 源代码文件)
#define LOG_TAG "wifi.proto"
#define LOG_LVL ELOG_LVL_DEBUG
#include <elog.h>
log_e("我是 wifi.proto 日志"); |
改动1:
EasyLogger 的默认配色,不管是在白色还是黑色的背景的终端,都无法很好地显示出来。在白色背景下,黄色的输出看不清,在黑色背景
下,蓝色的输出看不清。
我修改了日志的样式,将前景色改成背景色,并基于背景颜色来决定前景色为黑还是白。
此外,这种非常有特色的输出,还能很好地区别开其他模块输出到同一个终端而产生的日志。
改动2:
EasyLogger 中有个 hexdump,但是 hexdump 本身没有可调节的日志等级,我想做 6 个日志等级 hexdump 函数。
改动3:
允许用户为不同的 log tag 设置不同的日志策略。用户启用该功能的具体方法是在 include EasyLogger 的头文件之前定义两个 Macro,分别是 log_tag 和 log_level。
请问你们是否接受上述修改?如果接受的话我将尽快修改并提交上述改动。
The text was updated successfully, but these errors were encountered: