log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DebugLogger = log.New(os.Stderr, "DEBUG: ", stdDebugLogFlags)
	InfoLogger  = log.New(os.Stderr, "INFO: ", stdLogFlags)
	ErrorLogger = log.New(os.Stderr, "ERROR: ", stdLogFlags)
	FatalLogger = log.New(os.Stderr, "FATAL: ", log.LstdFlags|log.Llongfile|log.LUTC)
)

Functions

func Debugf

func Debugf(format string, args ...interface{})

Debugf prints debug messages

func Errorf

func Errorf(format string, args ...interface{})

Errorf prints warning messages

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf prints fatal message and exits program

func Infof

func Infof(format string, args ...interface{})

Infof prints info messages

func SetDebug

func SetDebug(val bool)

SetDebug sets output into debug mode if true passed

func SuppressOutput

func SuppressOutput(suppress bool)

SuppressOutput suppresses all output from logs if `suppress` is true used while testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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