log

package
v0.0.0-...-9e32484 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 7 Imported by: 39

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