logger

package
v0.0.0-...-bb670d2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red         = color.Red.Render
	Cyan        = color.Cyan.Render
	Yellow      = color.Yellow.Render
	White       = color.White.Render
	Blue        = color.Blue.Render
	Purple      = color.Style{color.Magenta, color.OpBold}.Render
	LightRed    = color.Style{color.Red, color.OpBold}.Render
	LightGreen  = color.Style{color.Green, color.OpBold}.Render
	LightWhite  = color.Style{color.White, color.OpBold}.Render
	LightCyan   = color.Style{color.Cyan, color.OpBold}.Render
	LightYellow = color.Style{color.Yellow, color.OpBold}.Render
)

Functions

func Debug

func Debug(detail string)

func DebugError

func DebugError(err error) bool

func Error

func Error(detail string)

func Failed

func Failed(detail string)

func Fatal

func Fatal(detail string)

func GetTime

func GetTime() string

func Info

func Info(detail string)

func SetLevel

func SetLevel(l Level)

func Success

func Success(detail string)

func Verbose

func Verbose(detail string)

func Warning

func Warning(detail string)

Types

type Level

type Level int
const (
	LevelFatal Level = iota
	LevelError
	LevelInfo
	LevelWarning
	LevelDebug
	LevelVerbose
)

Jump to

Keyboard shortcuts

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