mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 10:22:50 +08:00
17 lines
275 B
Go
17 lines
275 B
Go
package eventbus
|
|
|
|
import "log"
|
|
|
|
type Logger interface {
|
|
Printf(string, ...interface{})
|
|
}
|
|
|
|
type loggerImpl struct{}
|
|
|
|
func (l loggerImpl) Printf(s string, i ...interface{}) {
|
|
log.Printf(s, i...)
|
|
}
|
|
|
|
// Log replace with your own logger if needed
|
|
var Log Logger = &loggerImpl{}
|