logx

package
v0.0.0-...-426aaea Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GreenAttr = iota
	YellowAttr
	BlueAttr
	RedAttr
	CyanAttr
	WhiteAttr
	HiGreenAttr
	HiYellowAttr
	HiBlueAttr
	HiRedAttr
	HiCyanAttr
	HiWhiteAttr
)

Variables

View Source
var DebugMode = true
View Source
var DisableLogMode bool
View Source
var StdOutput = color.Output

Functions

func Blue

func Blue(format string, a ...interface{}) string

func Cyan

func Cyan(format string, a ...interface{}) string

func Debug

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

func Error

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

func ErrorBy

func ErrorBy(err error)

func Fatal

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

func Green

func Green(format string, a ...interface{}) string

func HiBlue

func HiBlue(format string, a ...interface{}) string

func HiCyan

func HiCyan(format string, a ...interface{}) string

func HiGreen

func HiGreen(format string, a ...interface{}) string

func HiRed

func HiRed(format string, a ...interface{}) string

func HiWhite

func HiWhite(format string, a ...interface{}) string

func HiYellow

func HiYellow(format string, a ...interface{}) string

func Info

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

func Red

func Red(format string, a ...interface{}) string

func Warn

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

func White

func White(format string, a ...interface{}) string

func Yellow

func Yellow(format string, a ...interface{}) string

Types

type Level

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

Jump to

Keyboard shortcuts

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