Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormLogger ¶
func NewGormLogger(opts ...GormLoggerOption) *gormLogger
Types ¶
type GormLoggerOption ¶
type GormLoggerOption func(g *gormLogger)
func WithIgnoreRecordNotFound ¶
func WithIgnoreRecordNotFound() GormLoggerOption
func WithPrefix ¶
func WithPrefix(prefix string) GormLoggerOption
func WithSlowThreshold ¶
func WithSlowThreshold(dur time.Duration) GormLoggerOption
Click to show internal directories.
Click to hide internal directories.