Add log and dns documentation

This commit is contained in:
世界
2022-07-08 17:01:38 +08:00
parent 3699a57847
commit d6d02b9924
13 changed files with 442 additions and 1 deletions

33
docs/configuration/log.md Normal file
View 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.