logger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 5 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 LogWithAttrs added in v0.4.0

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

Wrapper func, used for dev/prod-ready logging - based on the slog.LevelInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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