logger

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(mode string) *slog.Logger

Inits the go standart logger, based on env mode.

func LogHandlerError added in v0.5.0

func LogHandlerError(
	ctx context.Context,
	logger *slog.Logger,
	path string,
	err error,
	extraAttrs ...slog.Attr,
)

Wrapper func, used for logging handler func errors.

func LogService added in v0.5.0

func LogService(
	ctx context.Context,
	logger *slog.Logger,
	funcName string,
	begin time.Time,
	err error,
	extraAttrs ...slog.Attr,
)

Wrapper func, used for dev/prod-ready logging of a service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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