log

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// If no logs should be outputted
	Quiet = false
	// If all logs should be outputted
	Debug = false
)

Functions

func Fatal

func Fatal(err CtxErr)

Log a given error fatally to the console At the moment this function is a simple wrapper around the lumber module but exists for easy switching to other log formats

func FormatPulse

func FormatPulse(pulse models.Pulse) string

Format a pulse for outputting

func Info

func Info(ctx ...interface{})

Log some info to the console At the moment this function is a simple wrapper around the lumber module but exists for easy switching to other log formats

func Success

func Success(forceOut bool, ctx ...interface{})

Log a success to the console At the moment this function is a simple wrapper around the lumber module but exists for easy switching to other log formats

func Warning

func Warning(ctx ...interface{})

Log a warning to the console At the moment this function is a simple wrapper around the lumber module but exists for easy switching to other log formats

Types

type CtxErr

type CtxErr struct {
	Error   error
	Context string
}

A error with context that the user can understand

func NewErr

func NewErr(context string) CtxErr

Create a brand new error

Jump to

Keyboard shortcuts

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