Skip to content

Commit

Permalink
fix: added human readable log format (#5479)
Browse files Browse the repository at this point in the history
  • Loading branch information
exu authored May 23, 2024
1 parent edc2568 commit 236f1fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"log"

"go.uber.org/zap"
"go.uber.org/zap/zapcore"

"github.com/kubeshop/testkube/pkg/envs"
)
Expand All @@ -19,6 +20,7 @@ func New() *zap.SugaredLogger {

zapCfg := zap.NewProductionConfig()
zapCfg.Level = atomicLevel
zapCfg.EncoderConfig.EncodeTime = zapcore.RFC3339TimeEncoder

z, err := zapCfg.Build()
if err != nil {
Expand Down

0 comments on commit 236f1fd

Please sign in to comment.