mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
chore: default logging format to rfc3339 (#9775)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
This commit is contained in:
parent
cd023846a7
commit
7a93dcdbc9
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ func Setup(logFormat string, loggingTimestampFormat string, level int) error {
|
||||||
case RFC3339NANO:
|
case RFC3339NANO:
|
||||||
zc.EncoderConfig.EncodeTime = zapcore.RFC3339NanoTimeEncoder
|
zc.EncoderConfig.EncodeTime = zapcore.RFC3339NanoTimeEncoder
|
||||||
case "default":
|
case "default":
|
||||||
zc.EncoderConfig.EncodeTime = zapcore.EpochNanosTimeEncoder
|
zc.EncoderConfig.EncodeTime = zapcore.RFC3339TimeEncoder
|
||||||
default:
|
default:
|
||||||
return errors.New("timestamp format not recognized, pass `iso8601` for ISO8601, `rfc3339` for RFC3339, `rfc3339nano` for RFC3339NANO, `millis` for Epoch Millis, `nanos` for Epoch Nanos, or omit the flag for the Unix Epoch timestamp format")
|
return errors.New("timestamp format not recognized, pass `iso8601` for ISO8601, `rfc3339` for RFC3339, `rfc3339nano` for RFC3339NANO, `millis` for Epoch Millis, `nanos` for Epoch Nanos, or omit the flag for the Unix Epoch timestamp format")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue