liblog

package module
v0.0.0-...-64285ac Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Colors = map[string]string{
		"B1": "\033[30;1m", "B2": "\033[30;2m",
		"R1": "\033[31;1m", "R2": "\033[31;2m",
		"G1": "\033[32;1m", "G2": "\033[32;2m",
		"Y1": "\033[33;1m", "Y2": "\033[33;2m",
		"B3": "\033[34;1m", "B4": "\033[34;2m",
		"M1": "\033[35;1m", "M2": "\033[35;2m",
		"C1": "\033[36;1m", "C2": "\033[36;2m",
		"W1": "\033[37;1m", "W2": "\033[37;2m",
		"CC":         "\033[0m",
		"BG_BLACK":   "\033[0;40m",
		"BG_RED":     "\033[0;41m",
		"BG_GREEN":   "\033[0;42m",
		"BG_YELLOW":  "\033[0;43m",
		"BG_BLUE":    "\033[0;44m",
		"BG_MAGENTA": "\033[0;45m",
		"BG_CYAN":    "\033[0;46m",
		"BG_WHITE":   "\033[0;47m",
	}
)

Functions

func Header(messages []string, color string)

func LimitMessageLength

func LimitMessageLength(message string, slice int) (string, string)

func Log

func Log(message string, prefix string)

func LogColor

func LogColor(message string, color string)

func LogException

func LogException(err error, info string)

func LogInfo

func LogInfo(message string, info string, color string)

func LogInfoSplit

func LogInfoSplit(message string, slice int, info string, color string)

func LogKeyboardInterrupt

func LogKeyboardInterrupt()

func LogReplace

func LogReplace(message string, color string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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