gormzap

package
v0.0.0-...-6edc87d Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbLogger

type DbLogger struct {
	ZapLogger *zap.Logger
	LogLevel  gormLogger.LogLevel
}

func New

func New(zapLogger *zap.Logger) DbLogger

func (DbLogger) Error

func (l DbLogger) Error(ctx context.Context, msg string, args ...interface{})

func (DbLogger) Info

func (l DbLogger) Info(ctx context.Context, msg string, args ...interface{})

func (DbLogger) LogMode

func (l DbLogger) LogMode(level gormLogger.LogLevel) gormLogger.Interface

func (DbLogger) Trace

func (l DbLogger) Trace(ctx context.Context, begin time.Time, fc func() (string, int64), err error)

func (DbLogger) Warn

func (l DbLogger) Warn(ctx context.Context, msg string, args ...interface{})

Jump to

Keyboard shortcuts

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