lgr

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWorkspaceID

func AddWorkspaceID(r *http.Request, id string)

Attaches a workspace to the request context. Useful for logging.

func AttachLogger

func AttachLogger(fn http.HandlerFunc) http.HandlerFunc

Attaches logger attributes to the handler.

func ErrAttr

func ErrAttr(err error) slog.Attr

func LogRequest

func LogRequest(ctx context.Context, status int, msg string)

func NewLogger

func NewLogger(cfg config.Config) *slog.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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