slogadapter

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoKit

func GoKit(h slog.Handler) log.Logger

GoKit returns a log.Logger that writes to the provided slog.Handler.

func NewZap added in v1.17.0

func NewZap(l *slog.Logger) *zap.Logger

NewZap returns a new zap.Logger instance which will forward logs to the provided *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
⌂ 换网址