log

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 1 Imported by: 0

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

func SetDebug(l logging.LoggerInterface)

SetDebug sets a custom logger for DEBUG level logs

func SetError

func SetError(l logging.LoggerInterface)

SetError sets a custom logger for ERROR level logs

func SetFatal

func SetFatal(l logging.LoggerInterface)

SetFatal sets a custom logger for FATAL level logs

func SetInfo

func SetInfo(l logging.LoggerInterface)

SetInfo sets a custom logger for INFO level logs

func SetWarning

func SetWarning(l logging.LoggerInterface)

SetWarning sets a custom logger for WARNING level logs

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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