pkg/log/kafka.go
2023-09-18 15:51:20 +08:00

11 lines
174 B
Go

package log
import (
"github.com/segmentio/kafka-go"
"go.uber.org/zap"
)
var KafkaInfo = kafka.LoggerFunc(zap.S().Infof)
var KafkaErr = kafka.LoggerFunc(zap.S().Errorf)