Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler wraps the HTTP handler and returns a new handler which logs all requests with the default logger.
func NewHandlerWith ¶
NewHandlerWith wraps the HTTP handler and returns a new handler which logs all requests with logger.
Panics from handler are intercepted and trigger a 500 response if no response header was sent yet. The panic is not slienced tho and is propagated to the parent handler.
func NewTransport ¶
func NewTransport(roundTripper http.RoundTripper) http.RoundTripper
NewTransportWith wraps roundTripper and returns a new transport which logs all submitted requests with the default logger.
func NewTransportWith ¶
func NewTransportWith(logger *events.Logger, roundTripper http.RoundTripper) http.RoundTripper
NewTransportWith wraps roundTripper and returns a new transport which logs all submitted requests with logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.