slogadapter

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger log.Logger) *slogHandler

NewSLogHandler returns a new slog.Handler that logs to the given log.Logger.

func Provide

func Provide() slog.Handler

Provide is a helper method to be used with Wire, however most services should use slog.Default()

Types

This section is empty.

Jump to

Keyboard shortcuts

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