Merge pull request #6683 from uthark/oatamanenko/docs

document log level and format
This commit is contained in:
Derek McGowan 2022-03-15 22:33:39 -07:00 committed by GitHub
commit 42ff244b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -63,7 +63,9 @@ config as version 1 has been deprecated.
- **address** (Default: "/run/containerd/debug.sock") - **address** (Default: "/run/containerd/debug.sock")
- **uid** (Default: 0) - **uid** (Default: 0)
- **gid** (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]** **[metrics]**
: Section to enable and configure a metrics listener. Contains two properties: : Section to enable and configure a metrics listener. Contains two properties:

View File

@ -146,7 +146,7 @@ type Debug struct {
UID int `toml:"uid"` UID int `toml:"uid"`
GID int `toml:"gid"` GID int `toml:"gid"`
Level string `toml:"level"` Level string `toml:"level"`
// Format represents the logging format // Format represents the logging format. Supported values are 'text' and 'json'.
Format string `toml:"format"` Format string `toml:"format"`
} }