Initial zh-CN document translation: log

This commit is contained in:
Johnshall 2022-08-24 13:48:29 +08:00 committed by GitHub
parent 1bc7d2237e
commit e1773fea30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,31 @@
### 结构
```json
{
"log": {
"disabled": false,
"level": "info",
"output": "box.log",
"timestamp": true
}
}
```
### 字段
#### disabled
关闭日志功能,开启后将无日志输出。
#### level
日志级别。可选参数有:`trace` `debug` `info` `warn` `error` `fatal` `panic`
#### output
输出日志文件地址。开启后将不会在终端反馈日志信息。
#### timestamp
在输出的每一行加入时间戳。