Dynamic Configuration Refactoring

This commit is contained in:
Ludovic Fernandez 2018-11-14 10:18:03 +01:00 committed by Traefiker Bot
parent d3ae88f108
commit a09dfa3ce1
452 changed files with 21023 additions and 9419 deletions

26
tracing/jaeger/logger.go Normal file
View file

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