bunslog

package
v0.0.0-...-9c716d7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Logger            *sloglogger.Logger
	SlowThreshold     time.Duration
	IgnoreNoRowsError bool
	Level             string
	// contains filtered or unexported fields
}

func New

func New(opts Logger) *Logger

func (*Logger) AfterQuery

func (l *Logger) AfterQuery(ctx context.Context, event *bun.QueryEvent)

func (*Logger) BeforeQuery

func (l *Logger) BeforeQuery(ctx context.Context, event *bun.QueryEvent) context.Context

Jump to

Keyboard shortcuts

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