Fix log item on document menu

This commit is contained in:
世界
2022-08-28 12:45:38 +08:00
parent e0de96eb4c
commit 665c84ee42
3 changed files with 6 additions and 1 deletions

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.