logger

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEchoContext

func FromEchoContext(c echo.Context) logger.Logger

FromEchoContext returns a logger.Logger from the given echo.Context. It fetches the logger on the underlying context.Context.

func IDFromEchoContext

func IDFromEchoContext(c echo.Context) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL