Versions in this module Expand all Collapse all v1 v1.0.7 Sep 17, 2019 Changes in this version + func AddWriterToContext(ctx context.Context, rw http.ResponseWriter) context.Context + func DefaultAfter(entry *logrus.Entry, res negroni.ResponseWriter, latency time.Duration, ...) *logrus.Entry + func DefaultBefore(entry *logrus.Entry, req *http.Request, remoteAddr string) *logrus.Entry + func Extract(ctx context.Context) *logrus.Entry + func ExtractWriter(ctx context.Context) http.ResponseWriter + func ToContext(ctx context.Context, entry *logrus.Entry) context.Context + type AfterFunc func(*logrus.Entry, negroni.ResponseWriter, time.Duration, string) *logrus.Entry + type BeforeFunc func(*logrus.Entry, *http.Request, string) *logrus.Entry + type Middleware struct + After func(*logrus.Entry, negroni.ResponseWriter, time.Duration, string) *logrus.Entry + Before func(*logrus.Entry, *http.Request, string) *logrus.Entry + Logger *logrus.Logger + Name string + func NewCustomMiddleware(level logrus.Level, formatter logrus.Formatter, name string) *Middleware + func NewMiddleware() *Middleware + func NewMiddlewareFromLogger(logger *logrus.Logger, name string) *Middleware + func (m *Middleware) ExcludeURL(u string) error + func (m *Middleware) ExcludedURLs() []string + func (m *Middleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) + func (m *Middleware) SetLogStarting(v bool)