Categorygithub.com/adamjacobmuller/weblogrus
modulepackage
0.0.0-20170604030403-b492fdd4c715
Repository: https://github.com/adamjacobmuller/weblogrus.git
Documentation: pkg.go.dev

# README

weblogrus

GoDoc

A version of negroni-logrus designed to work with gocraft/web

# Functions

DefaultAfter is the default func assigned to *Middleware.After.
DefaultBefore is the default func assigned to *Middleware.Before.
NewCustomMiddleware builds a *Middleware with the given level and formatter.
NewMiddleware returns a new *Middleware, yay!.
NewMiddlewareFromLogger returns a new *Middleware which writes to a given logrus logger.

# Structs

Middleware is a middleware handler that logs the request as it goes in and the response as it goes out.

# Type aliases

AfterFunc is the func type used to modify or replace the *logrus.Entry after calling the next func in the middleware chain.
BeforeFunc is the func type used to modify or replace the *logrus.Entry prior to calling the next func in the middleware chain.