logger

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(handlers ...slog.Handler) *slog.Logger

Types

type DBLogger

type DBLogger struct {
	*slog.Logger
	// contains filtered or unexported fields
}

func NewDBLogger

func NewDBLogger(db db.Client, logger *slog.Logger) *DBLogger

func (*DBLogger) Log

func (l *DBLogger) Log(ctx context.Context, data logger.LogData) error

Jump to

Keyboard shortcuts

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