logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

func Error

func Error(msg string, args ...any)

func Info

func Info(msg string, args ...any)

func Init

func Init(verbose bool)

func LogHTTPError

func LogHTTPError(method, url string, err error, duration time.Duration)

LogHTTPError logs an HTTP request error with timing

func LogHTTPRequest

func LogHTTPRequest(method, url string, attrs ...any)

LogHTTPRequest logs an outbound HTTP request at debug level

func LogHTTPRequestBody

func LogHTTPRequestBody(body string)

LogHTTPRequestBody logs the request body at debug level

func LogHTTPResponse

func LogHTTPResponse(method, url string, status int, duration time.Duration, attrs ...any)

LogHTTPResponse logs an HTTP response with timing at debug level

func LogHTTPResponseBody

func LogHTTPResponseBody(body string)

LogHTTPResponseBody logs the response body at debug level

func Warn

func Warn(msg string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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