Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultEchoLogConfig = EchoLogConfig{ Skipper: middleware.DefaultSkipper, OutFormat: FormatText, } )
DefaultEchoLogConfig
Functions ¶
func EchoLog ¶
EchoLog returns an EchoLog middleware with default config. Example for use: e.Use(lxLogMiddleware.EchoLog(log))
func EchoLogWithConfig ¶
func EchoLogWithConfig(config EchoLogConfig) echo.MiddlewareFunc
EchoLogWithConfig returns an EchoLog middleware with custom config. Example for use:
e.Use(lxLogMiddleware.EchoLogWithConfig(lxLogMiddleware.EchoLogConfig { Logger: log, OutFormat: lxLogMiddleware.FormatText, }))
Types ¶
type EchoLogConfig ¶
type EchoLogConfig struct { // Skipper defines a function to skip middleware. middleware.Skipper // Logger instance Logger *logrus.Logger // OutFormat format for output. OutFormat Out }
EchoLogConfig defines the config for EchoLogConfig middleware.
Click to show internal directories.
Click to hide internal directories.