logger

package
v1.5.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 169

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug is debug level

func Debugf

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

Debugf is format debug level

func Error

func Error(args ...interface{})

Error is error level

func Errorf

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

Errorf is format error level

func Info

func Info(args ...interface{})

Info is info level

func Infof

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

Infof is format info level

func InitLog

func InitLog(logConfFile string) error

InitLog use for init logger by call InitLogger

func InitLogger

func InitLogger(conf *zap.Config)

InitLogger use for init logger by @conf

func SetLogger

func SetLogger(log Logger)

SetLogger sets logger for dubbo and getty

func SetLoggerLevel added in v1.3.0

func SetLoggerLevel(level string) bool

SetLoggerLevel use for set logger level

func Warn

func Warn(args ...interface{})

Warn is warning level

func Warnf

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

Warnf is format warning level

Types

type DubboLogger added in v1.3.0

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

nolint

func (*DubboLogger) SetLoggerLevel added in v1.3.0

func (dl *DubboLogger) SetLoggerLevel(level string)

SetLoggerLevel use for set logger level

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 is the interface for Logger types

func GetLogger added in v1.2.0

func GetLogger() Logger

GetLogger gets the logger

type OpsLogger added in v1.3.0

type OpsLogger interface {
	Logger
	SetLoggerLevel(level string)
}

OpsLogger use for the SetLoggerLevel

Jump to

Keyboard shortcuts

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