Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromEchoContext ¶
FromEchoContext returns a logger.Logger from the given echo.Context. It fetches the logger on the underlying context.Context.
func IDFromEchoContext ¶
IDFromEchoContext returns the request ID from the given echo.Context. If there is no request ID, then this will just return the empty string.
func Middleware ¶
func Middleware() func(echo.HandlerFunc) echo.HandlerFunc
Middleware attaches a logger.Logger instance with a request ID onto the context. It also logs every request along with metadata about the request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.