log

package
v0.0.0-...-b15c6f9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: BSD-3-Clause 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