traefik/pkg/tracing/haystack/logger.go

25 lines
518 B
Go
Raw Normal View History

2019-05-08 22:14:04 +00:00
package haystack
import (
"github.com/traefik/traefik/v2/pkg/log"
2019-05-08 22:14:04 +00:00
)
type haystackLogger struct {
logger log.Logger
}
2020-05-11 10:06:07 +00:00
// Error prints the error message.
2019-05-08 22:14:04 +00:00
func (l haystackLogger) Error(format string, v ...interface{}) {
2022-07-19 16:38:09 +00:00
l.logger.Errorf(format, v...)
2019-05-08 22:14:04 +00:00
}
2020-05-11 10:06:07 +00:00
// Info prints the info message.
2019-05-08 22:14:04 +00:00
func (l haystackLogger) Info(format string, v ...interface{}) {
2022-07-19 16:38:09 +00:00
l.logger.Infof(format, v...)
2019-05-08 22:14:04 +00:00
}
2020-05-11 10:06:07 +00:00
// Debug prints the info message.
2019-05-08 22:14:04 +00:00
func (l haystackLogger) Debug(format string, v ...interface{}) {
2022-07-19 16:38:09 +00:00
l.logger.Debugf(format, v...)
2019-05-08 22:14:04 +00:00
}