Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(upstream httpclient.HttpClient, logger logging.Logger, level logging.Level) httpclient.HttpClient
New wraps an upstream client and logs all requests made to it.
Types ¶
type LoggingClient ¶
type LoggingClient struct {
// contains filtered or unexported fields
}
LoggingClient is a HttpClient with a pluggable logger.
func (*LoggingClient) SetCheckRedirect ¶ added in v0.0.6
func (*LoggingClient) SetLevel ¶ added in v0.2.0
func (lc *LoggingClient) SetLevel(newLevel logging.Level)
SetLevel alters the logging level. This can be called concurrently from any goroutine.
Click to show internal directories.
Click to hide internal directories.