log

package
v0.0.0-...-457133c Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

func Debug(msg string, args ...any)

func DebugPretty

func DebugPretty(msg string, args ...any)

Doesn't log anything, but prints in the pretty debug color

func Error

func Error(msg string, args ...any)

func ErrorIfErr

func ErrorIfErr(err error, context string, args ...any) bool

"While {CONTEXT}: {ERROR}" Returns true if err != nil, intended for inline usage: if ErrorIfErr(err, "context here (%s)", "stuff") { return }

func Fatal

func Fatal(msg string, args ...any)

func FatalIfErr

func FatalIfErr(err error, context string, args ...any)

"While {CONTEXT}: {ERROR}"

func Init

func Init(DEBUG_MENTION, DEBUG_WEBHOOK string)

func Success

func Success(msg string, args ...any)

func SuccessPretty

func SuccessPretty(msg string, args ...any)

Doesn't log anything, but prints in the pretty success color

func Warn

func Warn(msg string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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