mirror of
https://gitee.com/jiuyilian/embedded-framework.git
synced 2025-01-06 10:16:51 -05:00
Log变颜色功能实现
This commit is contained in:
parent
94af1eaaea
commit
5e978069b6
|
@ -39,7 +39,7 @@ namespace ILogTest
|
|||
|
||||
*/
|
||||
|
||||
// 设置 INFO 级别的日志格式为蓝色
|
||||
// 设置 INFO 级别的日志格式为绿色
|
||||
defaultConf.set(el::Level::Info,
|
||||
el::ConfigurationType::Format,
|
||||
"\x1b[32m%datetime %level %msg\x1b[0m");
|
||||
|
@ -81,7 +81,7 @@ namespace ILogTest
|
|||
// el::Loggers::reconfigureLogger("default", defaultConf);
|
||||
|
||||
// 使用easylogging++的日志宏
|
||||
LOG(INFO) << "hello world.......";
|
||||
LOG(INFO) << "hello world.";
|
||||
LOG(ERROR) << "create ... failed.";
|
||||
LOG(DEBUG) << "a = " << 124 << " b = " << "apple";
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user