xormlog

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: LGPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XormLogger

type XormLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

XormLogger xorm日志

func NewLogger

func NewLogger(filename string) *XormLogger

NewLogger 创建日志

func WrapLogger

func WrapLogger(l *zap.SugaredLogger) *XormLogger

WrapLogger 封装日志

func (*XormLogger) AfterSQL

func (l *XormLogger) AfterSQL(ctx log.LogContext)

AfterSQL implements ContextLogger

func (*XormLogger) BeforeSQL

func (l *XormLogger) BeforeSQL(log.LogContext)

BeforeSQL implements ContextLogger

func (*XormLogger) IsShowSQL

func (l *XormLogger) IsShowSQL() bool

IsShowSQL implement log.Logger

func (*XormLogger) Level

func (l *XormLogger) Level() log.LogLevel

Level implement log.Logger

func (*XormLogger) SetLevel

func (l *XormLogger) SetLevel(level log.LogLevel)

SetLevel implement log.Logger

func (*XormLogger) ShowSQL

func (l *XormLogger) ShowSQL(show ...bool)

ShowSQL implement log.Logger

Jump to

Keyboard shortcuts

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