logs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// PrefixFormat is the format of the prefix to every log display, includes things like time stamp and event type
	PrefixFormat = "%s %s "
)

Functions

func Err

func Err(message string)

Err error logs

func ErrIfErrf

func ErrIfErrf(err error, format string, a ...interface{})

ErrIfErrf error logs if there's an error

func Errf

func Errf(format string, a ...interface{})

Errf error logs with format

func Fatal

func Fatal(message string)

Fatal fatal logs

func FatalIfErrf

func FatalIfErrf(err error, format string, a ...interface{})

FatalIfErrf logs fatal if there's an error

func Fatalf

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

Fatalf fatal logs with format

func Info

func Info(message string)

Info info logs

func Infof

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

Infof info logs if format

func Warn

func Warn(message string)

Warn warn logs

func WarnIfErrf

func WarnIfErrf(err error, format string, a ...interface{})

WarnIfErrf warn logs if there's an error

func Warnf

func Warnf(format string, a ...interface{})

Warnf warn logs with format

Types

This section is empty.

Jump to

Keyboard shortcuts

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