log

package
v1.9.3-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: BSD-3-Clause Imports: 8 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 SetJww added in v1.7.1

func SetJww(verbose bool, w io.Writer)

SetJww sets jww log when debug enabled.

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