debuglogger

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IAMLogf

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

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

func Infof

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

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

func InternalError added in v1.2.0

func InternalError(er error)

InternalError prints the internal error out in the console

func IsDebugEnabled

func IsDebugEnabled() bool

IsDebugEnabled returns true if debugging is enabled

func IsIAMDebugEnabled

func IsIAMDebugEnabled() bool

IsDebugEnabled returns true if debugging enabled

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 Panic added in v1.0.19

func Panic(er error)

Panic prints the panics out in the console

func PrintInsideHorizontalBorders

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

func SetDebugEnabled()

SetDebugEnabled sets the debug mode

func SetIAMDebugEnabled

func SetIAMDebugEnabled()

SetIAMDebugEnabled sets the IAM debug mode

Types

type Color

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