1
0
mirror of https://github.com/containous/traefik.git synced 2024-12-24 21:34:39 +03:00
traefik/adapters.go

35 lines
830 B
Go
Raw Normal View History

2015-09-19 14:02:59 +03:00
/*
Copyright
*/
package main
2015-09-19 14:02:59 +03:00
import (
"net/http"
"github.com/containous/traefik/log"
2015-09-19 14:02:59 +03:00
)
// OxyLogger implements oxy Logger interface with logrus.
type OxyLogger struct {
2015-09-19 14:02:59 +03:00
}
// Infof logs specified string as Debug level in logrus.
2015-09-19 14:02:59 +03:00
func (oxylogger *OxyLogger) Infof(format string, args ...interface{}) {
log.Debugf(format, args...)
2015-09-19 14:02:59 +03:00
}
// Warningf logs specified string as Warning level in logrus.
2015-09-19 14:02:59 +03:00
func (oxylogger *OxyLogger) Warningf(format string, args ...interface{}) {
log.Warningf(format, args...)
2015-09-19 14:02:59 +03:00
}
// Errorf logs specified string as Warningf level in logrus.
2015-09-19 14:02:59 +03:00
func (oxylogger *OxyLogger) Errorf(format string, args ...interface{}) {
log.Warningf(format, args...)
2015-09-19 14:02:59 +03:00
}
func notFoundHandler(w http.ResponseWriter, r *http.Request) {
http.NotFound(w, r)
//templatesRenderer.HTML(w, http.StatusNotFound, "notFound", nil)
}