logging

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormLogger added in v1.0.5

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

GormLogger Gorm Logger

func New

func New() *GormLogger

New Create new logger

func NewWithLogger added in v1.0.5

func NewWithLogger(logger *logrus.Logger) *GormLogger

NewWithLogger Create new logger with custom logger

func NewWithName added in v1.0.5

func NewWithName(name string) *GormLogger

NewWithName Create new logger with custom name

func NewWithNameAndLogger added in v1.0.5

func NewWithNameAndLogger(name string, logger *logrus.Logger) *GormLogger

NewWithNameAndLogger Create new logger with custom name and logger

func (*GormLogger) Print added in v1.0.5

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

Print 输出Log

Jump to

Keyboard shortcuts

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