status-go/vendor/github.com/koron/go-ssdp/internal/ssdplog/ssdplog.go

17 lines
276 B
Go

/*
Package ssdplog provides log mechanism for ssdp.
*/
package ssdplog
import "log"
var LoggerProvider = func() *log.Logger { return nil }
func Printf(s string, a ...interface{}) {
if p := LoggerProvider; p != nil {
if l := p(); l != nil {
l.Printf(s, a...)
}
}
}