logs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

gen for home toolset

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllProvider

func GetAllProvider() []interface{}

Types

type GinLogrus

type GinLogrus struct{}

@Bean

func NewGinLogrus

func NewGinLogrus() *GinLogrus

func (*GinLogrus) Write

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

type MysqlLog

type MysqlLog struct{}

调试的过程

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