You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* add support for iso8601 timestamps
* Update pkg/log/zap/flags.go
Co-Authored-By: Lili Cosic <[email protected]>
* timeformat flag accepts zapcore formats
* add --zap-timeformat usage doc
* Update pkg/log/zap/flags.go
Co-Authored-By: Joe Lanford <[email protected]>
* expand log encoder support functional options and passing multiple encoder options simultaneously
* fix encoder references in tests
* fix encoder references in tests
* Update doc/user/logging.md
Co-Authored-By: Joe Lanford <[email protected]>
* set the encoder in both the json and console cases
* use zap's time encoding UnmarshalText functionality to avoid manually defining supported time formats
* rename timeformat to timeencoding/er so that it is consistent with zap's nomenclature
* rename timeformat to timeencoding/er so that it is consistent with zap's nomenclature
* add basic tests for zap time encoding
* pkg/log/zap/*: test improvements for sampling and encoders
* pkg/log/zap/flags*: timeEncoder Unmarshal comments/improvements
* doc/user/logging.md: fix zap-time-encoding flag name
* CHANGELOG.md,doc/user/logging.md: doc updates
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
### Added
4
4
5
5
- Document new compile-time dependency `mercurial` in user-facing documentation. ([#1683](https://github.com/operator-framework/operator-sdk/pull/1683))
6
+
- Adds new flag `--zap-time-encoding` to the flagset provided by `pkg/log/zap`. This flag configures the timestamp format produced by the zap logger. See the [logging doc](https://github.com/operator-framework/operator-sdk/blob/master/doc/user/logging.md) for more information. ([#1529](https://github.com/operator-framework/operator-sdk/pull/1529))
Copy file name to clipboardExpand all lines: doc/user/logging.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ By default, `zap.Logger()` will return a logger that is ready for production use
14
14
*`--zap-encoder` string - Sets the zap log encoding (`json` or `console`)
15
15
*`--zap-level` string or integer - Sets the zap log level (`debug`, `info`, `error`, or an integer value greater than 0). If 4 or greater the verbosity of client-go will be set to this level.
16
16
*`--zap-sample` - Enables zap's sampling mode. Sampling will be disabled for integer log levels greater than 1.
17
+
*`--zap-time-encoding` string - Sets the zap time format (`epoch`, `millis`, `nano`, or `iso8601`)
0 commit comments