logger

package
v2.6.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorsEnabled

func ColorsEnabled() bool

func Debug

func Debug(format string, v ...interface{})

func Error

func Error(format string, v ...interface{})

func Fatal

func Fatal(format string, v ...interface{})

func Info

func Info(format string, v ...interface{})

func Notice

func Notice(format string, v ...interface{})

func OutputPipe

func OutputPipe() io.Writer

func SetColors

func SetColors(b bool)

func SetLevel

func SetLevel(l Level)

func Warn

func Warn(format string, v ...interface{})

Types

type Level

type Level int
const (
	INFO Level = iota
	NOTICE
	DEBUG
	ERROR
	WARN
	FATAL
)

func GetLevel

func GetLevel() Level

func (Level) String

func (p Level) String() string

String returns the string representation of a logging level.

Jump to

Keyboard shortcuts

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