log

package
v0.0.0-...-f02548a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	IMPORTANT
	WARNING
	ERROR
	FATAL
	SUCCESS
)

Variables

View Source
var LogLabels = map[int]string{
	DEBUG:     "dbg",
	INFO:      "inf",
	IMPORTANT: "imp",
	WARNING:   "war",
	ERROR:     "err",
	FATAL:     "!!!",
	SUCCESS:   "+++",
}

Functions

func Debug

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

func DebugEnable

func DebugEnable(enable bool)

func Error

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

func Fatal

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

func GetOutput

func GetOutput() io.Writer

func Important

func Important(format string, args ...interface{})

func Info

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

func NullLogger

func NullLogger() *log.Logger

func Printf

func Printf(format string, args ...interface{})

func SetOutput

func SetOutput(o io.Writer)

func SetReadline

func SetReadline(rl *readline.Instance)

func Success

func Success(format string, args ...interface{})

func Warning

func Warning(format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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