log

package
v0.0.0-...-b9423a0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: AGPL-3.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogFlag       = ErrorFlag
	ErrorFormat   = "\033[31mERROR"
	WarningFormat = "\033[33mWARNING"
	NoteFormat    = "\033[36mNOTE"
	DebugFormat   = "\033[37mDEBUG"
	PanicFormat   = "\033[35mPANIC"
	FatalFormat   = "\033[35mFATAL"
)

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Debugln

func Debugln(args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

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

func Errorln

func Errorln(args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Fatalln

func Fatalln(args ...interface{})

func Note

func Note(args ...interface{})

func Notef

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

func Noteln

func Noteln(args ...interface{})

func Panic

func Panic(args ...interface{})

func Panicf

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

func Panicln

func Panicln(args ...interface{})

func SetLevel

func SetLevel(level string)

func Warning

func Warning(args ...interface{})

func Warningf

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

func Warningln

func Warningln(args ...interface{})

Types

type Flag

type Flag byte
const (
	DebugFlag Flag = iota
	NoteFlag
	WarningFlag
	ErrorFlag
)

Jump to

Keyboard shortcuts

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