github.com/prebid/prebid-server/v2@v2.18.0/experiment/adscert/SignerLogger.go (about) 1 package adscert 2 3 import ( 4 "fmt" 5 "github.com/golang/glog" 6 ) 7 8 type SignerLogger struct { 9 } 10 11 func (sl *SignerLogger) Debugf(format string, args ...interface{}) { 12 //there is no Debug level in glog 13 glog.Infof(format, args...) 14 } 15 16 func (sl *SignerLogger) Infof(format string, args ...interface{}) { 17 glog.Infof(format, args...) 18 } 19 20 func (sl *SignerLogger) Info(format string) { 21 glog.Info(format) 22 } 23 24 func (sl *SignerLogger) Warningf(format string, args ...interface{}) { 25 glog.Warningf(format, args...) 26 } 27 28 func (sl *SignerLogger) Errorf(format string, args ...interface{}) { 29 glog.Errorf(format, args...) 30 } 31 32 func (sl *SignerLogger) Fatalf(format string, args ...interface{}) { 33 glog.Fatalf(format, args...) 34 } 35 36 func (sl *SignerLogger) Panicf(format string, args ...interface{}) { 37 panic(fmt.Sprintf(format, args...)) 38 }