querylogger

package module
v10.0.0-...-ad595ba Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 4 Imported by: 3

README

go-pg-logrus-query-logger

Query logger for go-pg.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Log            logrus.FieldLogger
	MaxQueryLength int
}

func (Logger) AfterQuery

func (Logger) AfterQuery(context.Context, *pg.QueryEvent) error

func (Logger) BeforeQuery

func (logger Logger) BeforeQuery(ctx context.Context, evt *pg.QueryEvent) (context.Context, error)

Jump to

Keyboard shortcuts

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