log

package
v0.0.0-...-0eeeb36 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LOG_LEVEL_CRITICAL = 0
View Source
const LOG_LEVEL_DEBUG = 3
View Source
const LOG_LEVEL_ERROR = 1
View Source
const LOG_LEVEL_WARNING = 2
View Source
const LOG_LEVEL_WITH_STACK_TRACE = 4

Variables

View Source
var LogLevel int64 = 3

Functions

func Criticalf

func Criticalf(msg string, args ...interface{})

Criticalf print always. Print color.

func Debugf

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

Debugf print if debug mode is enabled. print no color

func Errorf

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

Errorf print if error is enabled. Print color.

func Infof

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

Infof print always. Print no color

func PrettyPrint

func PrettyPrint(v interface{}) string

func Warningf

func Warningf(msg string, args ...interface{})

Warningf print if warning is enabled. Print color.

Types

This section is empty.

Jump to

Keyboard shortcuts

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