zorm

package module
v0.0.0-...-f4408fc Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 4 Imported by: 0

README

zormlogger

Zap Logger interface for XORM

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZormLogger

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

ZormLogger is the default implment of ILogger

func NewLogger

func NewLogger(l interface{}, name string, showSQL bool) *ZormLogger

func (*ZormLogger) Debug

func (s *ZormLogger) Debug(v ...interface{})

Debug implement ILogger

func (*ZormLogger) Debugf

func (s *ZormLogger) Debugf(format string, v ...interface{})

Debugf implement ILogger

func (*ZormLogger) Error

func (s *ZormLogger) Error(v ...interface{})

Error implement ILogger

func (*ZormLogger) Errorf

func (s *ZormLogger) Errorf(format string, v ...interface{})

Errorf implement ILogger

func (*ZormLogger) Info

func (s *ZormLogger) Info(v ...interface{})

Info implement ILogger

func (*ZormLogger) Infof

func (s *ZormLogger) Infof(format string, v ...interface{})

Infof implement ILogger

func (*ZormLogger) IsShowSQL

func (s *ZormLogger) IsShowSQL() bool

IsShowSQL implement ILogger

func (*ZormLogger) Level

func (s *ZormLogger) Level() xormlog.LogLevel

Level implement ILogger

func (*ZormLogger) SetLevel

func (s *ZormLogger) SetLevel(l xormlog.LogLevel)

SetLevel implement ILogger

func (*ZormLogger) ShowSQL

func (s *ZormLogger) ShowSQL(show ...bool)

ShowSQL implement ILogger

func (*ZormLogger) Warn

func (s *ZormLogger) Warn(v ...interface{})

Warn implement ILogger

func (*ZormLogger) Warnf

func (s *ZormLogger) Warnf(format string, v ...interface{})

Warnf implement ILogger

Jump to

Keyboard shortcuts

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