Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(upstream http.RoundTripper, logger logging.Logger, level logging.Level) http.RoundTripper
New wraps an upstream client and logs all requests made to it.
Types ¶
type LoggingTransport ¶
type LoggingTransport struct {
// contains filtered or unexported fields
}
LoggingTransport is a http.RoundTripper with a pluggable logger.
Click to show internal directories.
Click to hide internal directories.