Merge pull request #6683 from uthark/oatamanenko/docs
document log level and format
This commit is contained in:
commit
42ff244b1f
@ -63,7 +63,9 @@ config as version 1 has been deprecated.
|
||||
- **address** (Default: "/run/containerd/debug.sock")
|
||||
- **uid** (Default: 0)
|
||||
- **gid** (Default: 0)
|
||||
- **level** (Default: "info") sets the debug log level
|
||||
- **level** (Default: "info") sets the debug log level. Supported levels are:
|
||||
"trace", "debug", "info", "warn", "error", "fatal", "panic"
|
||||
- **format** (Default: "text") sets log format. Supported formats are "text" and "json"
|
||||
|
||||
**[metrics]**
|
||||
: Section to enable and configure a metrics listener. Contains two properties:
|
||||
|
@ -146,7 +146,7 @@ type Debug struct {
|
||||
UID int `toml:"uid"`
|
||||
GID int `toml:"gid"`
|
||||
Level string `toml:"level"`
|
||||
// Format represents the logging format
|
||||
// Format represents the logging format. Supported values are 'text' and 'json'.
|
||||
Format string `toml:"format"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user