logger

package
v0.0.0-...-c676f21 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 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 GormZapLogger

type GormZapLogger struct {
	logger.Config
	// contains filtered or unexported fields
}

func NewGormZapLogger

func NewGormZapLogger(log *zap.Logger, config logger.Config) *GormZapLogger

func (GormZapLogger) Debug

func (l GormZapLogger) Debug(ctx context.Context, msg string, data ...interface{})

增加Debug打印

func (GormZapLogger) Error

func (l GormZapLogger) Error(ctx context.Context, msg string, data ...interface{})

func (GormZapLogger) Fatal

func (l GormZapLogger) Fatal(ctx context.Context, msg string, data ...interface{})

增加Fatal打印

func (GormZapLogger) Info

func (l GormZapLogger) Info(ctx context.Context, msg string, data ...interface{})

func (*GormZapLogger) LogMode

func (l *GormZapLogger) LogMode(level logger.LogLevel) logger.Interface

func (GormZapLogger) Trace

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

func (GormZapLogger) Warn

func (l GormZapLogger) Warn(ctx context.Context, msg string, data ...interface{})

Jump to

Keyboard shortcuts

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