logger

package
v0.0.0-...-36354f6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...interface{})

func Debugf

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

func Error

func Error(msg string, args ...interface{})

func Errorf

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

func Fatal

func Fatal(msg string, args ...interface{})

func Fatalf

func Fatalf(msg string, args ...interface{})

func GetZapLogger

func GetZapLogger() *zap.Logger

func Info

func Info(msg string, args ...interface{})

func Infof

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

func Warning

func Warning(msg string, args ...interface{})

func Warningf

func Warningf(msg string, args ...interface{})

Types

type Log

type Log struct {
	*zap.Logger
	// contains filtered or unexported fields
}

func (*Log) Debugf

func (log *Log) Debugf(msg string, args ...interface{})

func (*Log) Errorf

func (log *Log) Errorf(msg string, args ...interface{})

func (*Log) Fatalf

func (log *Log) Fatalf(msg string, args ...interface{})

func (*Log) Infof

func (log *Log) Infof(msg string, args ...interface{})

func (*Log) SetExit

func (log *Log) SetExit(fn func(code int))

func (*Log) Warningf

func (log *Log) Warningf(msg string, args ...interface{})

type Logger

type Logger interface {
	Infof(msg string, args ...interface{})
	Warningf(msg string, args ...interface{})
	Errorf(msg string, args ...interface{})
	Debugf(msg string, args ...interface{})
	Fatalf(msg string, args ...interface{})
	SetExit(func(code int))
}

func GetLogger

func GetLogger() Logger

Jump to

Keyboard shortcuts

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