package
1.0.6
Repository: https://github.com/dictybase/go-middlewares.git
Documentation: pkg.go.dev

# Functions

NewCustomMiddleware builds a *Logger with the given level and formatter.
NewFileLogger writes to a file.
NewJSONFileLogger writes to a file in JSON format.
NewJSONLogger returns a new *Logger that logs in JSON format.
NewLogger returns a new *Logger.
NewMiddlewareFromLogger returns a new *Logger which writes to a given logrus logger.

# Structs

Logger is a middleware handler that logs the request as it goes in and the response as it goes out.
LogResponseWriter is a custom type that extends http.ResponseWriter interface to capture and provide an easy access to http status code.