Skip to content

Commit

Permalink
Merge pull request #1837 from creydr/add-zap-time-encoding-to-doc
Browse files Browse the repository at this point in the history
📖 Add documentation for zap-time-encoding flag
  • Loading branch information
k8s-ci-robot committed Mar 18, 2022
2 parents e42a8c1 + 2f0bae4 commit 5636d97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/log/zap/zap.go
Expand Up @@ -257,6 +257,8 @@ func NewRaw(opts ...Opts) *zap.Logger {
// zap-log-level: Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error',
// or any integer value > 0 which corresponds to custom debug levels of increasing verbosity")
// zap-stacktrace-level: Zap Level at and above which stacktraces are captured (one of 'info', 'error' or 'panic')
// zap-time-encoding: Zap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano').
// Defaults to 'epoch'.
func (o *Options) BindFlags(fs *flag.FlagSet) {
// Set Development mode value
fs.BoolVar(&o.Development, "zap-devel", o.Development,
Expand Down

0 comments on commit 5636d97

Please sign in to comment.