This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# stm32f10x RT-Thread Demo
---
## 1、简介
通过 `app\src\app_task.c` 的 `test_elog()` 方法来测试日志的输出,用户可以接入终端来控制日志的输出与过滤器的设置。
### 1.1、使用方法
打开电脑的终端与Demo的串口1进行连接,串口配置 115200 8 1 N,此时在终端中就可以输入 "2.6 Demo" Gif动画中提到的常用命令,如下:
- 1、elog:使能与失能输出日志。elog on:使能,elog off:失能
- 2、elog_lvl:设置过滤级别(0-5)。
- 3、elog_tag:设置过滤标签,设置后,则只有当日志的标签包含过滤标签时,才会被输出。不带任何参数则清空过滤标签。
- 4、elog_kw:设置过滤关键词,设置后,则只有当日志的 **所有内容** 包含过滤关键词时,才会被输出。不带任何参数则清空过滤关键词。
## 2、文件(夹)说明
`components\easylogger\port\elog_port.c` 移植参考文件
`RVMDK` 下为Keil工程文件
`EWARM` 下为IAR工程文件