logger

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

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

func LoggerMiddleware

func LoggerMiddleware(baseLogger *slog.Logger) func(http.Handler) http.Handler

LoggerMiddleware is an alias for Middleware for backward compatibility

func Middleware

func Middleware(baseLogger *slog.Logger) func(http.Handler) http.Handler

Middleware returns an HTTP middleware that logs access logs and enriches context with request ID

func WithLogger

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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