logger

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DieIf

func DieIf(err error)

DieIf outputs log and exit(1) if `err` occurs.

func ErrorIf

func ErrorIf(err error) bool

ErrorIf outputs log if `err` occurs.

func Log

func Log(prefix, message string)

Log outputs `message` with `prefix` by go-colorine

func PanicIf

func PanicIf(err error)

PanicIf raise panic if `err` occurs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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