traefik/pkg/tracing/haystack/logger.go

26 lines
539 B
Go
Raw Normal View History

2019-05-08 22:14:04 +00:00
package haystack
import (
2019-08-03 01:58:23 +00:00
"github.com/containous/traefik/v2/pkg/log"
2019-05-08 22:14:04 +00:00
)
/*NullLogger does nothing*/
type haystackLogger struct {
logger log.Logger
}
/*Error prints the error message*/
func (l haystackLogger) Error(format string, v ...interface{}) {
l.logger.Errorf(format, v)
}
/*Info prints the info message*/
func (l haystackLogger) Info(format string, v ...interface{}) {
l.logger.Infof(format, v)
}
/*Debug prints the info message*/
func (l haystackLogger) Debug(format string, v ...interface{}) {
l.logger.Debug(format, v)
}