logger

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultLogger logger
	DefaultLogger *logging.ZapEventLogger
)

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

default logger

func Infof

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

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type KLogger

type KLogger struct {
	logging.ZapEventLogger
}

func Logger

func Logger(system string) *KLogger

Logger retrieves an event logger by name

func (*KLogger) WithError

func (h *KLogger) WithError(err error) *KLogger

func (*KLogger) WithFields

func (h *KLogger) WithFields(args ...interface{}) *KLogger

Jump to

Keyboard shortcuts

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