logging

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error) slog.Attr

func New

func New(envType config.EnvType) *slog.Logger

func Wrap

func Wrap(log *slog.Logger, options ...Option) *slog.Logger

Types

type Option

type Option func(*wrapOptions)

func WithAny

func WithAny(key string, value any) Option

func WithCtx

func WithCtx(ctx context.Context) Option

func WithOp

func WithOp(op any) Option

Jump to

Keyboard shortcuts

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