logging
logging:
level: info
format: text
#disable_timestamp: true
#timestamp_format: "2006-01-02T15:04:05.000Z07:00"
logging.level
Default: infoControls the verbosity of logs. The options are panic
, fatal
, error
, warning
, info
, or debug
.
logging.format
Default: textControls the logging format. The options are json
or text
logging.disable_timestamp
Default: FalseDisables timestamp logging. Useful when output is redirected to logging system that already adds timestamps.
logging.timestamp_format
timestamp_format
is specified in Go time format, see: https://golang.org/pkg/time/#pkg-constants.
The default when format: json
is set is an RFC3339 timestamp, e.g.
"2006-01-02T15:04:05Z07:00"
.
When format: text
is set:
- If a TTY is attached, the timestamp output is seconds since beginning of execution.
- Otherwise it is
"2006-01-02T15:04:05Z07:00"
(RFC3339).
As an example, to log as RFC3339 with millisecond precision:
timestamp_format: '2006-01-02T15:04:05.000Z07:00'