Create a custom logger for jaeger

This commit is contained in:
Michael 2018-06-28 17:36:03 +02:00 committed by Traefiker Bot
parent 886cc83ad9
commit d5436fb28b
2 changed files with 16 additions and 3 deletions

View file

@ -0,0 +1,15 @@
package jaeger
import "github.com/containous/traefik/log"
// jaegerLogger is an implementation of the Logger interface that delegates to traefik log
type jaegerLogger struct{}
func (l *jaegerLogger) Error(msg string) {
log.Errorf("Tracing jaeger error: %s", msg)
}
// Infof logs a message at debug priority
func (l *jaegerLogger) Infof(msg string, args ...interface{}) {
log.Debugf(msg, args...)
}