logutils

package
v0.0.0-...-d77435e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceID

func GetTraceID(ctx context.Context) string

func LoggerContextMiddleware

func LoggerContextMiddleware() echo.MiddlewareFunc

func LoggerFromContext

func LoggerFromContext(ctx context.Context) *slog.Logger

LoggerFromContext gets the logger from the given Golang context

func LoggerToContext

func LoggerToContext(ctx context.Context, logger *slog.Logger) context.Context

LoggerToContext set the logger the Golang context It the returns the new context, containing new logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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