mirror of
https://github.com/containous/traefik.git
synced 2024-12-24 21:34:39 +03:00
cbccdd51c5
- log & error: remove format if not necessary, add if necessary. - add constants for k8s annotations. - fix typos
31 lines
749 B
Go
31 lines
749 B
Go
package server
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/containous/traefik/log"
|
|
)
|
|
|
|
// OxyLogger implements oxy Logger interface with logrus.
|
|
type OxyLogger struct {
|
|
}
|
|
|
|
// Infof logs specified string as Debug level in logrus.
|
|
func (oxylogger *OxyLogger) Infof(format string, args ...interface{}) {
|
|
log.Debugf(format, args...)
|
|
}
|
|
|
|
// Warningf logs specified string as Warning level in logrus.
|
|
func (oxylogger *OxyLogger) Warningf(format string, args ...interface{}) {
|
|
log.Warningf(format, args...)
|
|
}
|
|
|
|
// Errorf logs specified string as Warningf level in logrus.
|
|
func (oxylogger *OxyLogger) Errorf(format string, args ...interface{}) {
|
|
log.Warningf(format, args...)
|
|
}
|
|
|
|
func notFoundHandler(w http.ResponseWriter, r *http.Request) {
|
|
http.NotFound(w, r)
|
|
}
|