logger

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

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 Warn

func Warn(args ...interface{})

func Warnf

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

Types

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

func GetLogger() Logger

Jump to

Keyboard shortcuts

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