log

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatalf

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

Fatalf -- see Fatalf (above)

Types

type Fields

type Fields map[string]interface{}

func (Fields) Merge

func (f Fields) Merge(f2 Fields) Fields

func (Fields) Slice

func (f Fields) Slice() []interface{}

func (Fields) With

func (f Fields) With(xs ...interface{}) Fields

type Logger

type Logger interface {
	SetLogLabel(inLabel string)
	GetLogLabel() string
	GetLogPrefix() string
	Debug(args ...interface{})
	Debugf(inFormat string, args ...interface{})
	Debugw(inFormat string, fields Fields)
	Success(args ...interface{})
	Successf(inFormat string, args ...interface{})
	Successw(inFormat string, fields Fields)
	LogV(inVerboseLevel int32) bool
	Info(inVerboseLevel int32, args ...interface{})
	Infof(inVerboseLevel int32, inFormat string, args ...interface{})
	Infow(inFormat string, fields Fields)
	Warn(args ...interface{})
	Warnf(inFormat string, args ...interface{})
	Warnw(inFormat string, fields Fields)
	Error(args ...interface{})
	Errorf(inFormat string, args ...interface{})
	Errorw(inFormat string, fields Fields)
	Fatalf(inFormat string, args ...interface{})
}

Logger abstracts basic logging functions.

func NewLogger

func NewLogger(label string) Logger

NewLogger creates and inits a new Logger with the given label.

Jump to

Keyboard shortcuts

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