diff --git a/rt-thread-version/rt-thread-standard/programming-manual/ulog/ulog.md b/rt-thread-version/rt-thread-standard/programming-manual/ulog/ulog.md index 28ebf5c3ab5794a3a4cb9287bd80ff1532e290a8..659632acfae6a8ace77355606200e443fee173ab 100644 --- a/rt-thread-version/rt-thread-standard/programming-manual/ulog/ulog.md +++ b/rt-thread-version/rt-thread-standard/programming-manual/ulog/ulog.md @@ -57,19 +57,21 @@ ENV 工具中使用 menuconfig 配置 ulog 的路径如下所示: [ ] Enable async output mode. /* 使能异步日志输出模式。开启这个模式后,日志不会立刻输出到后端,而是先缓存起来,然后交给日志输出线程(例如:idle 线程)去输出 */ log format ---> /* 配置日志的格式,例如:时间信息,颜色信息,线程信息,是否支持浮点等等 */ [*] Enable console backend. /* 使能控制台作为后端。使能后日志可以输出到控制台串口上。建议保持开启。 */ +[ ] Enable file backend. /* ulog 的文件后端 */ [ ] Enable runtime log filter. /* 使能运行时的日志过滤器,即动态过滤。使能后,日志将支持按标签、关键词等方式,在系统运行时进行动态过滤。 */ +[ ] Enable syslog format log and API. /* 启用 syslog 格式日志和 API */ ``` **配置日志的格式(log format)选项描述如下所示:** ```c [ ] Enable float number support. It will using more thread stack. /* 浮点型数字的支持(传统的 rtdbg/rt_kprintf 均不支持浮点数日志) */ - [*] Enable color log. /* 带颜色的日志 */ - [*] Enable time information. /* 时间信息 */ - [ ] Enable timestamp format for time. /* 包括时间戳 */ - [*] Enable level information. /* 级别信息 */ - [*] Enable tag information. /* 标签信息 */ - [ ] Enable thread information. /* 线程信息 */ +[*] Enable color log. /* 带颜色的日志 */ +[*] Enable time information. /* 时间信息 */ +[ ] Enable timestamp format for time. /* 包括时间戳 */ +[*] Enable level information. /* 级别信息 */ +[*] Enable tag information. /* 标签信息 */ +[ ] Enable thread information. /* 线程信息 */ ``` ### 日志级别