debuglogger

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Infof added in v1.0.14

func Infof(format string, v ...any)

Infof prints out green info block with [INFO]: prefix

func LogFiberRequestDetails

func LogFiberRequestDetails(ctx *fiber.Ctx)

Logs http request details: headers, body, params, query args

func LogFiberResponseDetails

func LogFiberResponseDetails(ctx *fiber.Ctx)

Logs http response details: body, headers

func Logf

func Logf(format string, v ...any)

Logf is the same as 'fmt.Printf' with debug prefix, a color added and '\n' at the end

func PrintInsideHorizontalBorders added in v1.0.14

func PrintInsideHorizontalBorders(color Color, title, text string, width int)

PrintInsideHorizontalBorders prints the text inside horizontal border and title in the center of upper border

func SetDebugEnabled added in v1.0.14

func SetDebugEnabled()

SetDebugEnabled sets the debug mode

Types

type Color added in v1.0.14

type Color string
const (
	Purple Color = "\033[0;35m"
)

Jump to

Keyboard shortcuts

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