document log level and format

Signed-off-by: Oleg Atamanenko <oleg.atamanenko@gmail.com>
This commit is contained in:
Oleg Atamanenko 2022-03-15 20:55:01 -07:00
parent 58bae86d8e
commit fdb746442b
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"`
} }