logger

package
v0.0.0-...-d09d964 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCtx

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

FromCtx извлекает логгер из контекста

func ToCtx

func ToCtx(ctx context.Context, l *slog.Logger) context.Context

ToCtx добавляет логгер в контекст

func With

func With(ctx context.Context, args ...any) context.Context

With добавляет аргументы к логгеру в контексте

Types

This section is empty.

Jump to

Keyboard shortcuts

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