logger

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxInt64 = ^int64(0)

Functions

func IniMetics

func IniMetics()

func NewXORMLogger

func NewXORMLogger(logger *Logger) log.Logger

Types

type Logger

type Logger struct {
	logrus.Entry
	Level logrus.Level
}

func New

func New() *Logger

func (*Logger) Debug

func (logger *Logger) Debug(args ...interface{})

func (*Logger) Debugf

func (logger *Logger) Debugf(format string, args ...interface{})

func (*Logger) Debugln

func (logger *Logger) Debugln(args ...interface{})

func (*Logger) Error

func (logger *Logger) Error(args ...interface{})

func (*Logger) Errorf

func (logger *Logger) Errorf(format string, args ...interface{})

func (*Logger) Errorln

func (logger *Logger) Errorln(args ...interface{})

func (*Logger) Fatal

func (logger *Logger) Fatal(args ...interface{})

func (*Logger) Fatalf

func (logger *Logger) Fatalf(format string, args ...interface{})

func (*Logger) Fatalln

func (logger *Logger) Fatalln(args ...interface{})

func (*Logger) Info

func (logger *Logger) Info(args ...interface{})

func (*Logger) Infof

func (logger *Logger) Infof(format string, args ...interface{})

func (*Logger) Infoln

func (logger *Logger) Infoln(args ...interface{})

func (*Logger) Panic

func (logger *Logger) Panic(args ...interface{})

func (*Logger) Panicf

func (logger *Logger) Panicf(format string, args ...interface{})

func (*Logger) Panicln

func (logger *Logger) Panicln(args ...interface{})

func (*Logger) Print

func (logger *Logger) Print(args ...interface{})

func (*Logger) Printf

func (logger *Logger) Printf(format string, args ...interface{})

func (*Logger) Println

func (logger *Logger) Println(args ...interface{})

func (*Logger) V

func (logger *Logger) V(v int) bool

func (*Logger) Warn

func (logger *Logger) Warn(args ...interface{})

func (*Logger) Warnf

func (logger *Logger) Warnf(format string, args ...interface{})

func (*Logger) Warning

func (logger *Logger) Warning(args ...interface{})

func (*Logger) Warningf

func (logger *Logger) Warningf(format string, args ...interface{})

func (*Logger) Warningln

func (logger *Logger) Warningln(args ...interface{})

func (*Logger) Warnln

func (logger *Logger) Warnln(args ...interface{})

func (*Logger) WithCaller

func (logger *Logger) WithCaller(skip int) *Logger

func (*Logger) WithError

func (logger *Logger) WithError(err error) *Logger

func (*Logger) WithField

func (logger *Logger) WithField(key string, value interface{}) *Logger

func (*Logger) WithFields

func (logger *Logger) WithFields(fields map[string]interface{}) *Logger

type XORMLogger

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

func (*XORMLogger) Debug

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

Debug implement core.ILogger

func (*XORMLogger) Debugf

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

Debugf implement core.ILogger

func (*XORMLogger) Error

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

Error implement core.ILogger

func (*XORMLogger) Errorf

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

Errorf implement core.ILogger

func (*XORMLogger) Info

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

Info implement core.ILogger

func (*XORMLogger) Infof

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

Infof implement core.ILogger

func (*XORMLogger) IsShowSQL

func (s *XORMLogger) IsShowSQL() bool

IsShowSQL implement core.ILogger

func (*XORMLogger) Level

func (s *XORMLogger) Level() log.LogLevel

Level implement core.ILogger

func (*XORMLogger) SetLevel

func (s *XORMLogger) SetLevel(l log.LogLevel)

SetLevel implement core.ILogger

func (*XORMLogger) ShowSQL

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

ShowSQL implement core.ILogger

func (*XORMLogger) Warn

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

Warn implement core.ILogger

func (*XORMLogger) Warnf

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

Warnf implement core.ILogger

Jump to

Keyboard shortcuts

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