logger

package
v0.2.1-0...-b9ab31a Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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 load from config path

func InitLogger

func InitLogger(conf *zap.Config)

func SetLogger

func SetLogger(log Logger)

func SetLoggerLevel

func SetLoggerLevel(level string) bool

func Warn

func Warn(args ...interface{})

Warn

func Warnf

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

Warnf

Types

type DubbogoPXLogger

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

DubbogoPXLogger is logger struct

func (*DubbogoPXLogger) SetLoggerLevel

func (dpl *DubbogoPXLogger) 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

func GetLogger() Logger

type OpsLogger

type OpsLogger interface {
	Logger
	// SetLoggerLevel function as name
	SetLoggerLevel(level string)
}

Jump to

Keyboard shortcuts

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