Back to godoc.org
github.com/bunnyyiu/gorm-zap

Package gormzap

v0.0.0-...-fcad5e8
Latest Go to latest

The highest tagged major version is .

Published: May 12, 2020 | License: MIT | Module: github.com/bunnyyiu/gorm-zap

Index

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is an alternative implementation of *gorm.Logger

func New

func New(zap *zap.Logger) *Logger

New create logger object for *gorm.DB from *zap.Logger

func (*Logger) Print

func (l *Logger) Print(values ...interface{})

Print passes arguments to Println

func (*Logger) Println

func (l *Logger) Println(values []interface{})

Println format & print log

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier