logging
logging: level: info format: text #disable_timestamp: true #timestamp_format: "2006-01-02T15:04:05.000Z07:00"logging.level
Section titled “logging.level”Controls the verbosity of logs. The options are panic, fatal, error, warning, info, or debug.
logging.format
Section titled “logging.format”Controls the logging format. The options are json or text
logging.disable_timestamp
Section titled “logging.disable_timestamp”Disables timestamp logging. Useful when output is redirected to logging system that already adds timestamps.
logging.timestamp_format
Section titled “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'