mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-08 03:34:13 +08:00
Initial zh-CN document translation: log
This commit is contained in:
parent
1bc7d2237e
commit
e1773fea30
31
docs/configuration/log.zh.md
Normal file
31
docs/configuration/log.zh.md
Normal 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
|
||||
|
||||
在输出的每一行加入时间戳。
|
Loading…
x
Reference in New Issue
Block a user