logger

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	INFOLogger  *log.Logger
	WARNLogger  *log.Logger
	ERRORLogger *log.Logger
)

Functions

func GetLogs added in v0.0.27

func GetLogs() ([]string, error)

func LogError

func LogError(err RetroError, extra ...any) error

func LogInfo

func LogInfo(info string, extra ...any)

func LogWarn

func LogWarn(warn string, extra ...any)

Types

type RetroError

type RetroError struct {
	Err     string
	Details []error
}

func GError

func GError(err string, details ...error) RetroError

func (RetroError) Error

func (e RetroError) Error() string

Jump to

Keyboard shortcuts

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