17 lines
267 B
17 lines
267 B
2 years ago
|
package log
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
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...))
|
||
|
}
|