package
0.3.1
Repository: https://github.com/lvlcn-t/loggerhead.git
Documentation: pkg.go.dev

# Functions

FromContext extracts the slog.Logger from the provided context.
FromSlog returns a new Logger instance from the provided slog.Logger.
IntoContext embeds the provided slog.Logger into the given context and returns the modified context.
Middleware takes the logger from the context and adds it to the request context.
NewContextWithLogger creates a new context based on the provided parent context.
NewLogger creates a new Logger instance with optional configurations.
NewNamedLogger creates a new Logger instance with the provided name and optional configurations.

# Type aliases

Logger is the interface for the logger.
Options is the optional configuration for the logger.