You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EasyLogger/demo/os/windows
armink 22c9b45218 [demo] remove the windows demo unused file. 6 years ago
..
easylogger [demo] update the windows demo config. 6 years ago
.gitignore [demo] update the windows demo config. 6 years ago
README.md [demo] update the windows demo README.md 6 years ago
main.c [demo] Update the windows demo and support the new file plugin. 6 years ago
make.bat [demo] Update the windows demo porting code. Change the locker to win API. 6 years ago

README.md

windows demo


1、简介

使用GCC编译。通过 main.ctest_elog() 方法来测试日志的输出。

目前已自动开启 file 插件,可以自动将日志存储至文件。

1.1、使用方法

使用前需提前配置好编译环境,配置成功后,点击 make.bat 脚本,等待编译完成后,打开 out\EasyLoggerWinDemo.exe 即可看到运行结果。

2、文件说明

easylogger\port\elog_port.c 移植参考文件

3、其他功能

可以打开 main.c 中的部分注释,来测试以下功能。

  • elog_set_output_enabled(false); :动态使能或失能日志输出
  • elog_set_filter_lvl(ELOG_LVL_WARN); :动态设置过滤优先级
  • elog_set_filter_tag("main"); :动态设置过滤标签
  • elog_set_filter_kw("Hello"); :动态设置过滤关键词
  • elog_set_filter_tag_lvl("main", ELOG_LVL_WARN); :动态设置过滤关键词级别