log

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialized

func Initialized() bool

func NewHTTPClient

func NewHTTPClient() *http.Client

NewHTTPClient creates an HTTP client with debug logging enabled when debug mode is on.

func RecoverPanic

func RecoverPanic(name string, cleanup func())

func Setup

func Setup(logFile string, debug bool)

Types

type HTTPRoundTripLogger

type HTTPRoundTripLogger struct {
	Transport http.RoundTripper
}

HTTPRoundTripLogger is an http.RoundTripper that logs requests and responses.

func (*HTTPRoundTripLogger) RoundTrip

func (h *HTTPRoundTripLogger) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper interface with logging.

Jump to

Keyboard shortcuts

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