You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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
|
|
}
|