logger

package
v1.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 15 modules, 165 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Info

func Info(args ...interface{})

func Infof

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

func InitLog

func InitLog(logConfFile string) error

func InitLogger

func InitLogger(conf *zap.Config)

func SetLogger

func SetLogger(log Logger)

func SetLoggerLevel added in v1.3.0

func SetLoggerLevel(level string) bool

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type DubboLogger added in v1.3.0

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

func (*DubboLogger) SetLoggerLevel added in v1.3.0

func (dl *DubboLogger) SetLoggerLevel(level string)

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{})
}

func GetLogger added in v1.2.0

func GetLogger() Logger

type OpsLogger added in v1.3.0

type OpsLogger interface {
	Logger
	SetLoggerLevel(level string)
}

Jump to

Keyboard shortcuts

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