debug

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DebugEnabled is true if debug messages should be sent.
	DebugEnabled bool
	// TraceEnabled is true if messages should be traced.
	TraceEnabled bool
)

Functions

func Debug

func Debug(a interface{})

Debug calls Debug on the default Logger.

func Error

func Error(a interface{})

Error calls Error on the default Logger.

func Info

func Info(a interface{})

Info calls Info on the default Logger.

func Trace

func Trace(a interface{})

Trace calls Trace on the default Logger.

func Warn

func Warn(a interface{})

Warn calls Warn on the default Logger.

Types

type LoggerType

type LoggerType interface {
	Trace(interface{})
	Debug(interface{})
	Info(interface{})
	Warn(interface{})
	Error(interface{})
}

LoggerType is the type required by the Logger variable.

var Logger LoggerType = defaultLogger{}

Logger is the default logger called. You can set it to redirect logs to other places.

Jump to

Keyboard shortcuts

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