Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Skipper: DefaultSkipper, ContextKeys: nil, PrintBody: true, }
Functions ¶
func DefaultSkipper ¶ added in v1.1.4
func DefaultSkipper(echo.Context) bool
DefaultSkipper returns false which processes the middleware.
func ZapLogger ¶
ZapLogger is a middleware and zap to provide an "access log" like logging for each request.
func ZapLoggerWithConfig ¶ added in v1.1.4
Types ¶
type Config ¶ added in v1.1.4
type Config struct { // Skipper defines a function to skip middleware. Skipper Skipper // ContextKeys defines the keys which should be added to the logger, as fields, from the context. ContextKeys []interface{} // PrintBody defines if the body of the request should be printed, if it exists. PrintBody bool }
Click to show internal directories.
Click to hide internal directories.