We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7fe20d commit c683babCopy full SHA for c683bab
main.go
@@ -18,6 +18,7 @@ package main
18
19
import (
20
"flag"
21
+ "go.uber.org/zap/zapcore"
22
"log"
23
"os"
24
"strings"
@@ -61,7 +62,9 @@ func main() {
61
62
"Enabling this will ensure there is only one active controller manager.")
63
flag.Parse()
64
- ctrl.SetLogger(zap.New(zap.UseDevMode(true)))
65
+ ctrl.SetLogger(zap.New(zap.UseDevMode(true), zap.JSONEncoder(func(encoderconfig *zapcore.EncoderConfig) {
66
+ encoderconfig.EncodeTime = zapcore.RFC3339TimeEncoder
67
+ })))
68
69
namespace := os.Getenv("WATCH_NAMESPACE")
70
options := ctrl.Options{
0 commit comments