log

package
v0.0.0-...-e1b260e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2014 License: Apache-2.0 Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ErrorLevel = 0
	WarnLevel  = 1
	InfoLevel  = 2
	DebugLevel = 3
)

Variables

View Source
var (
	Debug = logger.New(os.Stdout, color.WhiteThin, "")
	Info  = logger.New(os.Stdout, color.WhiteBold, "")
	Warn  = logger.New(os.Stdout, color.Yellow, "Warning: ")
	Error = logger.New(os.Stderr, color.Red, "Error: ")
)

Functions

func LevelEnabled

func LevelEnabled(ll LogLevel) bool

func SetLevel

func SetLevel(newLevel LogLevel)

func SetLevelFromString

func SetLevelFromString(strLevel string) error

Types

type LogLevel

type LogLevel int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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