Files
open-im-server/pkg/common/log/zk_logger.go
T

17 lines
267 B
Go
Raw Normal View History

2023-06-11 11:49:54 +08:00
package log
import (
"context"
"fmt"
)
type ZkLogger struct{}
2023-06-20 10:32:35 +08:00
func NewZkLogger() *ZkLogger {
return &ZkLogger{}
}
2023-06-11 11:49:54 +08:00
func (l *ZkLogger) Printf(format string, a ...interface{}) {
2023-06-11 13:00:24 +08:00
ZInfo(context.Background(), "zookeeper output", "msg", fmt.Sprintf(format, a...))
2023-06-11 11:49:54 +08:00
}