Added support for Haystack tracing
This commit is contained in:
parent
681892148e
commit
9cf6827ccc
274 changed files with 38070 additions and 13436 deletions
25
pkg/tracing/haystack/logger.go
Normal file
25
pkg/tracing/haystack/logger.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package haystack
|
||||
|
||||
import (
|
||||
"github.com/containous/traefik/pkg/log"
|
||||
)
|
||||
|
||||
/*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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue