logger

package
v0.0.0-...-da86336 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(ctx context.Context) *slog.Logger

GetLogger gets the logger from the context.

func New

func New() *slog.Logger

Types

type LoggerKey

type LoggerKey struct{}

LoggerKey is a custom type to avoid key collisions in context.

Jump to

Keyboard shortcuts

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