mirror of
https://github.com/traefik/traefik.git
synced 2025-09-27 00:31:14 +02:00
26 lines
539 B
Go
26 lines
539 B
Go
package haystack
|
|
|
|
import (
|
|
"github.com/containous/traefik/v2/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)
|
|
}
|