logger

package
v1.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 169

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug ...

func Debugf

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

Debugf ...

func Error

func Error(args ...interface{})

Error ...

func Errorf

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

Errorf ...

func Info

func Info(args ...interface{})

Info ...

func Infof

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

Infof ...

func InitLog

func InitLog(logConfFile string) error

InitLog ...

func InitLogger

func InitLogger(conf *zap.Config)

InitLogger ...

func SetLogger

func SetLogger(log Logger)

SetLogger ...

func SetLoggerLevel added in v1.3.0

func SetLoggerLevel(level string) bool

SetLoggerLevel ...

func Warn

func Warn(args ...interface{})

Warn ...

func Warnf

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

Warnf ...

Types

type DubboLogger added in v1.3.0

type DubboLogger struct {
	Logger
	// contains filtered or unexported fields
}

DubboLogger ...

func (*DubboLogger) SetLoggerLevel added in v1.3.0

func (dl *DubboLogger) SetLoggerLevel(level string)

SetLoggerLevel ...

type Logger

type Logger interface {
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Debug(args ...interface{})

	Infof(fmt string, args ...interface{})
	Warnf(fmt string, args ...interface{})
	Errorf(fmt string, args ...interface{})
	Debugf(fmt string, args ...interface{})
}

Logger ...

func GetLogger added in v1.2.0

func GetLogger() Logger

GetLogger ...

type OpsLogger added in v1.3.0

type OpsLogger interface {
	Logger
	SetLoggerLevel(level string)
}

OpsLogger ...

Jump to

Keyboard shortcuts

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