c0f1e74bed
Co-authored-by: Romain <rtribotte@users.noreply.github.com>
24 lines
508 B
Go
24 lines
508 B
Go
package haystack
|
|
|
|
import (
|
|
"github.com/traefik/traefik/v2/pkg/log"
|
|
)
|
|
|
|
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)
|
|
}
|