Skip to content

Commit 2f0bae4

Browse files
committed
Add docu for zap-time-encoding flag
Signed-off-by: Christoph Stäbler <[email protected]>
1 parent 9ee63fc commit 2f0bae4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/log/zap/zap.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ func NewRaw(opts ...Opts) *zap.Logger {
257257
// zap-log-level: Zap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error',
258258
// or any integer value > 0 which corresponds to custom debug levels of increasing verbosity")
259259
// zap-stacktrace-level: Zap Level at and above which stacktraces are captured (one of 'info', 'error' or 'panic')
260+
// zap-time-encoding: Zap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano').
261+
// Defaults to 'epoch'.
260262
func (o *Options) BindFlags(fs *flag.FlagSet) {
261263
// Set Development mode value
262264
fs.BoolVar(&o.Development, "zap-devel", o.Development,

0 commit comments

Comments
 (0)