slogging

package
v6.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HeaderRequestID hold the header name to which the RIP is attached
	HeaderRequestID = "X-Request-Id"
)

Variables

View Source
var LogLevel = ((*slog.Logger).Info)

Functions

func NewHandler added in v6.1.0

func NewHandler(method ...func(*slog.Logger, string, ...any)) webfmwk.Handler

NewHandler generate an request ID and log information about the newly receive request The logger is then overloaded to add the request ID to every futur log message

Types

This section is empty.

Jump to

Keyboard shortcuts

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