log

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Blue    = color.New(color.FgBlue, color.Bold).Sprint
	Cyan    = color.New(color.FgCyan, color.Bold).Sprint
	Green   = color.New(color.FgGreen, color.Bold).Sprint
	Magenta = color.New(color.FgMagenta, color.Bold).Sprint
	Red     = color.New(color.FgRed, color.Bold).Sprint
)
View Source
var (
	Log   = new(log.Log)
	Debug = func(message string) { Log.Debug(Cyan(message)) }
	Error = func(message string) { Log.Error(Red(message)) }
	Fatal = func(message string) { Log.Fatal(Red(message)) }
	Info  = func(message string) { Log.Info(Blue(message)) }
)
View Source
var (
	Ok = func(message string) { Log.Info(Green(message)) }
)

Functions

func Bot

func Bot(app string) string

func CannotBeStarted

func CannotBeStarted(service string)

func CannotBeStopped

func CannotBeStopped(service string)

func ClosingConnectionWith

func ClosingConnectionWith(service string)

func ConnectionClosedWith

func ConnectionClosedWith(service string)

func ConnectionEstablishedWith

func ConnectionEstablishedWith(service string)

func ConnectionFailedWith

func ConnectionFailedWith(service string)

func DisconnectionFailedWith

func DisconnectionFailedWith(service string)

func EstablishingConnectionWith

func EstablishingConnectionWith(service string)
func Logo()

func Module

func Module(module string) string

func Server

func Server(app string) string

func Service

func Service(service string) string

func Started

func Started(service string)

func Starting

func Starting(service string)

func Stopped

func Stopped(service string)

func Stopping

func Stopping(service string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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