logger

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	HEADER    string = "\033[95m"
	OKBLUE    string = "\033[94m"
	OKCYAN    string = "\033[96m"
	OKGREEN   string = "\033[92m"
	WARNING   string = "\033[93m"
	FAIL      string = "\033[91m"
	ENDC      string = "\033[0m"
	BOLD      string = "\033[1m"
	UNDERLINE string = "\033[4m"
)

Variables

View Source
var Logger *log.Logger

Logger is the default logger of the bot.

Functions

func Color added in v1.7.0

func Color()

Color adds color to the logs.

func InitTheLogger

func InitTheLogger(botCfg *cfg.BotConfigs)

InitiTheLogger initializes the default logger of the bot.

func Log added in v1.7.0

func Log(header, space, content, after, headerColor, contentColor, afterColor string)

Log logs the given paramteres based on the defined format.

func Uncolor added in v1.7.0

func Uncolor()

Uncolor, clears the colors of the logs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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