polycule-connect/polyculeconnect/middlewares/middlewarechain.go

15 lines
201 B
Go
Raw Normal View History

2023-10-14 16:06:02 +00:00
package middlewares
import (
"net/http"
"github.com/sirupsen/logrus"
)
func WithLogger(handler http.Handler, l *logrus.Logger) http.Handler {
return &LoggerMiddleware{
l: l,
h: handler,
2023-10-14 16:06:02 +00:00
}
}