First Commmit
This commit is contained in:
33
docs/configuration/log/index.md
Normal file
33
docs/configuration/log/index.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Log
|
||||
|
||||
### Structure
|
||||
|
||||
```json
|
||||
{
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"output": "box.log",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
### Fields
|
||||
|
||||
#### disabled
|
||||
|
||||
Disable logging, no output after start.
|
||||
|
||||
#### level
|
||||
|
||||
Log level. One of: `trace` `debug` `info` `warn` `error` `fatal` `panic`.
|
||||
|
||||
#### output
|
||||
|
||||
Output file path. Will not write log to console after enable.
|
||||
|
||||
#### timestamp
|
||||
|
||||
Add time to each line.
|
||||
33
docs/configuration/log/index.zh.md
Normal file
33
docs/configuration/log/index.zh.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# 日志
|
||||
|
||||
### 结构
|
||||
|
||||
```json
|
||||
{
|
||||
"log": {
|
||||
"disabled": false,
|
||||
"level": "info",
|
||||
"output": "box.log",
|
||||
"timestamp": true
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
### 字段
|
||||
|
||||
#### disabled
|
||||
|
||||
禁用日志,启动后不输出日志。
|
||||
|
||||
#### level
|
||||
|
||||
日志等级,可选值:`trace` `debug` `info` `warn` `error` `fatal` `panic`。
|
||||
|
||||
#### output
|
||||
|
||||
输出文件路径,启动后将不输出到控制台。
|
||||
|
||||
#### timestamp
|
||||
|
||||
添加时间到每行。
|
||||
Reference in New Issue
Block a user