Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestLoggerConfig ¶
func RequestLoggerConfig(opts ...Option) middleware.RequestLoggerConfig
RequestLoggerConfig returns a middleware.RequestLoggerConfig with the given options.
func ZerologLogger ¶
func ZerologLogger(opts ...Option) echo.MiddlewareFunc
ZerologLogger returns a middleware that adds a zerolog logger to the context with request_id.
For request_id, it uses the echo.HeaderXRequestID header (X-Request-Id). WithLevel not meaningful here, as the level is set in the log message.
Use after middleware.RequestID().
Types ¶
Click to show internal directories.
Click to hide internal directories.