Melora Hugues
20fde2335e
All checks were successful
continuous-integration/drone/push Build is passing
14 lines
201 B
Go
14 lines
201 B
Go
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,
|
|
}
|
|
}
|