This is how I am trying to do it. I have read old posts in the community where this way is indeed working. But I can’t figure out why it isn’t working for me. I am on v1.5.1 for Temporal SDK.
var logger *zap.Logger
c, err := client.NewClient(client.Options{
Logger: logger,
})
And this is the error it is showing
cannot use logger (variable of type *zap.Logger) as "go.temporal.io/sdk/log".Logger value in struct literal: wrong type for method Debug (have func(msg string, fields ...go.uber.org/zap/zapcore.Field), want func(msg string, keyvals ...interface{}))compiler[InvalidIfaceAssign](https://pkg.go.dev/golang.org/x/tools/internal/typesinternal#InvalidIfaceAssign)