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

17 lines
276 B
Go
Raw Normal View History

2023-05-19 20:23:55 +00:00
/*
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...)
}
}
}