logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: MIT Imports: 6 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
	Green       = color.Green.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 Error

func Error(msg string)

func Fatal

func Fatal(msg string)

func General

func General(level Level, msg string, title string)

func Info

func Info(msg string)

func StripAnsi

func StripAnsi(str string) string

func Success

func Success(msg string)

func Warning

func Warning(msg string)

func WriteLogFile

func WriteLogFile(result string, filename string)

Types

type Level

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

Jump to

Keyboard shortcuts

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