log

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MPL-2.0 Imports: 1 Imported by: 274

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DEBUG ...
	DEBUG = logger[logging.DEBUG]
	// INFO ...
	INFO = logger[logging.INFO]
	// WARNING ...
	WARNING = logger[logging.WARNING]
	// ERROR ...
	ERROR = logger[logging.ERROR]
	// FATAL ...
	FATAL = logger[logging.FATAL]
)

Functions

func Set

func Set(l logging.LoggerInterface)

Set sets a custom logger for all log levels

func SetDebug added in v1.6.1

func SetDebug(l logging.LoggerInterface)

SetDebug sets a custom logger for DEBUG level logs

func SetError added in v1.6.1

func SetError(l logging.LoggerInterface)

SetError sets a custom logger for ERROR level logs

func SetFatal added in v1.6.1

func SetFatal(l logging.LoggerInterface)

SetFatal sets a custom logger for FATAL level logs

func SetInfo added in v1.6.1

func SetInfo(l logging.LoggerInterface)

SetInfo sets a custom logger for INFO level logs

func SetWarning added in v1.6.1

func SetWarning(l logging.LoggerInterface)

SetWarning sets a custom logger for WARNING level logs

Types

This section is empty.

Jump to

Keyboard shortcuts

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