logs

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Normal colors
	NBlack   = []byte{'\033', '[', '3', '0', 'm'}
	NRed     = []byte{'\033', '[', '3', '1', 'm'}
	NGreen   = []byte{'\033', '[', '3', '2', 'm'}
	NYellow  = []byte{'\033', '[', '3', '3', 'm'}
	NBlue    = []byte{'\033', '[', '3', '4', 'm'}
	NMagenta = []byte{'\033', '[', '3', '5', 'm'}
	NCyan    = []byte{'\033', '[', '3', '6', 'm'}
	NWhite   = []byte{'\033', '[', '3', '7', 'm'}
	// Bright colors
	BBlack   = []byte{'\033', '[', '3', '0', ';', '1', 'm'}
	BRed     = []byte{'\033', '[', '3', '1', ';', '1', 'm'}
	BGreen   = []byte{'\033', '[', '3', '2', ';', '1', 'm'}
	BYellow  = []byte{'\033', '[', '3', '3', ';', '1', 'm'}
	BBlue    = []byte{'\033', '[', '3', '4', ';', '1', 'm'}
	BMagenta = []byte{'\033', '[', '3', '5', ';', '1', 'm'}
	BCyan    = []byte{'\033', '[', '3', '6', ';', '1', 'm'}
	BWhite   = []byte{'\033', '[', '3', '7', ';', '1', 'm'}
)
View Source
var Blue = "\033[34m"
View Source
var Cyan = "\033[36m"
View Source
var Gray = "\033[37m"
View Source
var Green = "\033[32m"
View Source
var IsTTY bool
View Source
var Purple = "\033[35m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
View Source
var White = "\033[97m"
View Source
var Yellow = "\033[33m"

Functions

func Alert

func Alert(err error) error

func Alertf

func Alertf(format string, args ...any) error

func Alertm

func Alertm(message string) error

func CW

func CW(w io.Writer, color []byte, s string, args ...interface{})

colorWrite

func Color

func Color(color []byte, s string, args ...interface{}) *bytes.Buffer

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, args ...any)

func Error

func Error(err error) error

func Errorf

func Errorf(format string, args ...any) error

func Errorm

func Errorm(message string) error

func Fatal

func Fatal(err error) error

func Fatalm added in v0.0.3

func Fatalm(message string) error

func Info

func Info(v ...any)

func Infof

func Infof(format string, args ...any)

func Log

func Log(kind string, args ...any) error

func Logf

func Logf(kind string, format string, args ...any)

func Nerror added in v0.0.3

func Nerror(message string) error

func Nerrorf added in v0.0.3

func Nerrorf(format string, args ...any) error

func Panic

func Panic(err error) error

func Panicf

func Panicf(format string, args ...any) error

func Ping

func Ping()

func Println

func Println(w *bytes.Buffer)

func StdOut

func StdOut() error

func Trace added in v0.0.3

func Trace(err error) error

func Traces

func Traces(kind, color string, err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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