log

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InnerLog *zap.Logger

Functions

func Debug

func Debug(args ...interface{})

func Debugf added in v1.20.5

func Debugf(template string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf added in v1.20.5

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf added in v1.20.5

func Fatalf(template string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof added in v1.20.2

func Infof(template string, args ...interface{})

func Init

func Init(serviceName string, logRedisAddr map[string]string)

func Log

func Log(args ...interface{})

func Logf added in v1.20.2

func Logf(template string, args ...interface{})

func NewRedisWriter

func NewRedisWriter(key string, cli *redis.Client) *redisWriter

func Panic

func Panic(args ...interface{})

func Panicf added in v1.20.5

func Panicf(template string, args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf added in v1.20.5

func Warnf(template string, args ...interface{})

func With added in v1.20.1

func With(args ...interface{})

Types

type XormLogger added in v1.20.4

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

func NewXormLogger added in v1.20.4

func NewXormLogger(innerLog *zap.SugaredLogger) *XormLogger

NewSimpleLogger use a special io.Writer as logger output

func (*XormLogger) Debug added in v1.20.4

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

Debug implement core.ILogger

func (*XormLogger) Debugf added in v1.20.4

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

Debugf implement core.ILogger

func (*XormLogger) Error added in v1.20.4

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

Error implement core.ILogger

func (*XormLogger) Errorf added in v1.20.4

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

Errorf implement core.ILogger

func (*XormLogger) Info added in v1.20.4

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

Info implement core.ILogger

func (*XormLogger) Infof added in v1.20.4

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

Infof implement core.ILogger

func (*XormLogger) IsShowSQL added in v1.20.4

func (s *XormLogger) IsShowSQL() bool

IsShowSQL implement ILogger

func (*XormLogger) Level added in v1.20.4

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

func (*XormLogger) SetLevel added in v1.20.4

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

SetLevel implement ILogger

func (*XormLogger) ShowSQL added in v1.20.4

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

ShowSQL implement ILogger

func (*XormLogger) Warn added in v1.20.4

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

Warn implement core.ILogger

func (*XormLogger) Warnf added in v1.20.4

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

Warnf implement core.ILogger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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