zklogger update

This commit is contained in:
wangchuxiao
2023-06-20 10:32:35 +08:00
parent e2cdc6a645
commit df888d22e7
5 changed files with 18 additions and 4 deletions
+4
View File
@@ -7,6 +7,10 @@ import (
type ZkLogger struct{}
func NewZkLogger() *ZkLogger {
return &ZkLogger{}
}
func (l *ZkLogger) Printf(format string, a ...interface{}) {
ZInfo(context.Background(), "zookeeper output", "msg", fmt.Sprintf(format, a...))
}