mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 04:43:17 +00:00
31 lines
415 B
Markdown
31 lines
415 B
Markdown
|
### 结构
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"log": {
|
||
|
"disabled": false,
|
||
|
"level": "info",
|
||
|
"output": "box.log",
|
||
|
"timestamp": false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
### 字段
|
||
|
|
||
|
#### disabled
|
||
|
|
||
|
禁用日志,启动后不输出日志。
|
||
|
|
||
|
#### level
|
||
|
|
||
|
日志等级,可选值:`trace` `debug` `info` `warn` `error` `fatal` `panic`.
|
||
|
|
||
|
#### output
|
||
|
|
||
|
输出文件路径,启动后将不输出到控制台。
|
||
|
|
||
|
#### timestamp
|
||
|
|
||
|
添加时间到每行。
|