log

package
v0.13.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Debugf logs a message at level Debug.
	Debugf = logEntry.Debugf
	// Infof logs a message at level Info.
	Infof = logEntry.Infof
	// Warnf logs a message at level Warn.
	Warnf = logEntry.Warnf
	// Errorf logs a message at level Error.
	Errorf = logEntry.Errorf
	// Fatalf logs a message at level Fatal then the process will exit with status set to 1.
	Fatalf = logEntry.Fatalf
	// Debugln logs a message at level Debug.
	Debugln = logEntry.Debugln
	// Infoln logs a message at level Info.
	Infoln = logEntry.Infoln
	// Warnln logs a message at level Warn.
	Warnln = logEntry.Warnln
	// Errorln logs a message at level Error.
	Errorln = logEntry.Errorln
	// Fatalln logs a message at level Fatal then the process will exit with status set to 1.
	Fatalln = logEntry.Fatalln
)

nolint:gochecknoglobals

Functions

func SetOutput

func SetOutput(w io.Writer)

SetOutput defines output log to a file.

func SetVerbose

func SetVerbose(verbose bool)

SetVerbose sets log level to debug if enabled.

func WithField

func WithField(key string, value interface{})

WithField adds a single field to the Entry.

func WithFields

func WithFields(fields map[string]interface{})

WithFields adds a map of fields to the Entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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