logs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugLog added in v0.0.7

func NewDebugLog() logger.Interface

Types

type GinLogrus

type GinLogrus struct{}

func (*GinLogrus) Write

func (g *GinLogrus) Write(p []byte) (n int, err error)

type MysqlLog

type MysqlLog struct {
	log.Logger
}

MysqlLog 调试的过程

func (*MysqlLog) Error

func (d *MysqlLog) Error(ctx context.Context, s string, i ...interface{})

func (*MysqlLog) Info

func (d *MysqlLog) Info(ctx context.Context, s string, i ...interface{})

func (*MysqlLog) LogMode

func (d *MysqlLog) LogMode(level logger.LogLevel) logger.Interface

func (*MysqlLog) Trace

func (d *MysqlLog) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

func (*MysqlLog) Warn

func (d *MysqlLog) Warn(ctx context.Context, s string, i ...interface{})

Jump to

Keyboard shortcuts

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