Documentation
¶
Index ¶
- func IAMLogf(format string, v ...any)
- func Infof(format string, v ...any)
- func InternalError(er error)
- func IsDebugEnabled() bool
- func IsIAMDebugEnabled() bool
- func LogFiberRequestDetails(ctx *fiber.Ctx)
- func LogFiberResponseDetails(ctx *fiber.Ctx)
- func Logf(format string, v ...any)
- func Panic(er error)
- func PrintInsideHorizontalBorders(color Color, title, text string, width int)
- func SetDebugEnabled()
- func SetIAMDebugEnabled()
- type Color
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IAMLogf ¶
IAMLogf is the same as 'fmt.Printf' with debug prefix, a color added and '\n' at the end
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 ¶
Logs http request details: headers, body, params, query args
func LogFiberResponseDetails ¶
Logs http response details: body, headers
func PrintInsideHorizontalBorders ¶
PrintInsideHorizontalBorders prints the text inside horizontal border and title in the center of upper border
Types ¶
Click to show internal directories.
Click to hide internal directories.