logger

package
v0.0.0-...-e161612 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyPtermTheme

func ApplyPtermTheme()

ApplyPtermTheme applies custom styles to pterm

func Debug

func Debug(msg string, keysAndValues ...interface{})

Debug logs a debug message

func Error

func Error(msg string, keysAndValues ...interface{})

Error logs an error message

func Fatal

func Fatal(msg string, keysAndValues ...interface{})

Fatal logs a fatal error message and exits the application

func Info

func Info(msg string, keysAndValues ...interface{})

Info logs an info message

func Initialize

func Initialize(logLevel string, logPlainText bool)

Initialize sets up the logger with a specified log level

func RenderAsciiArt

func RenderAsciiArt()

RenderAsciiArt animates big text (50x10) and fishes moving right-to-left below it

func StartCustomSpinner

func StartCustomSpinner(message string) *pterm.SpinnerPrinter

StartCustomSpinner creates and starts a fresh custom spinner

func Success

func Success(msg string)

Success prints a user-facing success message with optional centralized control

func Warn

func Warn(msg string, keysAndValues ...interface{})

Warn logs a warning message

Types

type Bubble

type Bubble struct {
	Row int // Vertical position (y)
	Col int // Horizontal position
}

Bubble struct to hold bubble position and column

type Fish

type Fish struct {
	Pos      int // Horizontal position
	Row      int // Vertical position (y)
	StartPos int // Initial starting position
}

Fish struct to hold fish position and row

Jump to

Keyboard shortcuts

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