package binlog

type Logger interface {
	Tracef(fmt string, args ...interface{})
}

var l Logger

func tracef(fmt string, args ...interface{}) {
	if nil != l {
		l.Tracef(fmt+"\n", args...)
	}
}

func SetLogger(logger Logger) {
	l = logger
}
