Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogParams ¶
func GetLogParams(r *http.Request) (since time.Time, asFile bool, asFollow bool, logLines *int64, err error, previousLog bool)
GetLogParams Gets parameters for a log output
func NewRoundtripLogger ¶
func NewRoundtripLogger(fns ...WithFunc) func(t http.RoundTripper) http.RoundTripper
NewRoundtripLogger returns a http.RoundTripper that logs failed requests, and add traces for successfull requests
nolint Zerolog complains about potential unsent event, but we send the event on the end of the function
Types ¶
type RoundTripperFunc ¶
RoundTripperFunc implements http.RoundTripper for convenient usage.
Click to show internal directories.
Click to hide internal directories.