logger

package
v0.0.0-...-cc65f9c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug .

func Debugf

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

Debugf .

func Error

func Error(v ...interface{})

Error .

func Errorf

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

Errorf .

func Errorln

func Errorln(v ...interface{})

Errorln .

func Fatal

func Fatal(v ...interface{})

Fatal .

func Fatalln

func Fatalln(v ...interface{})

Fatalln .

func Info

func Info(v ...interface{})

Info .

func Infof

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

Infof .

func MacaronLogger

func MacaronLogger() macaron.Handler

MacaronLogger .

func Panic

func Panic(v ...interface{})

Panic .

func Panicf

func Panicf(format string, v ...interface{})

Panicf .

func SetLevel

func SetLevel(l int)

SetLevel .

func Warn

func Warn(v ...interface{})

Warn .

func Warnf

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

Warnf .

Types

type XormLog

type XormLog struct {
	xlog.DiscardLogger
	// contains filtered or unexported fields
}

XormLog xorm日志

func NewXormLogger

func NewXormLogger(level int, show bool) *XormLog

NewXormLogger .

func (*XormLog) Debug

func (l *XormLog) Debug(v ...interface{})

Debug .

func (*XormLog) Debugf

func (l *XormLog) Debugf(format string, v ...interface{})

Debugf .

func (*XormLog) Error

func (l *XormLog) Error(v ...interface{})

Error .

func (*XormLog) Errorf

func (l *XormLog) Errorf(format string, v ...interface{})

Errorf .

func (*XormLog) Info

func (l *XormLog) Info(v ...interface{})

Info .

func (*XormLog) Infof

func (l *XormLog) Infof(format string, v ...interface{})

Infof .

func (*XormLog) IsShowSQL

func (l *XormLog) IsShowSQL() bool

IsShowSQL .

func (*XormLog) Level

func (l *XormLog) Level() xlog.LogLevel

Level empty implementation

func (*XormLog) Warn

func (l *XormLog) Warn(v ...interface{})

Warn .

func (*XormLog) Warnf

func (l *XormLog) Warnf(format string, v ...interface{})

Warnf .

Jump to

Keyboard shortcuts

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