Versions in this module Expand all Collapse all v0 v0.1.2 Feb 27, 2023 Changes in this version + func WithHide(ctx context.Context) context.Context + type BodyFilter func(h http.Header) (skip bool, err error) + type Filter func(req *http.Request) (skip bool, err error) + type Flusher int + const NoBuffer + const OnEnd + const OnReady + type Formatter interface + Format func(w io.Writer, src []byte) error + Match func(mediatype string) bool + type JSONFormatter struct + func (j *JSONFormatter) Format(w io.Writer, src []byte) error + func (j *JSONFormatter) Match(mediatype string) bool + type Logger struct + Colors bool + Formatters []Formatter + MaxRequestBody int64 + MaxResponseBody int64 + RequestBody bool + RequestHeader bool + ResponseBody bool + ResponseHeader bool + SkipRequestInfo bool + SkipSanitize bool + TLS bool + Time bool + func (l *Logger) Middleware(next http.Handler) http.Handler + func (l *Logger) PrintRequest(req *http.Request) + func (l *Logger) PrintResponse(resp *http.Response) + func (l *Logger) RoundTripper(rt http.RoundTripper) http.RoundTripper + func (l *Logger) SetBodyFilter(f BodyFilter) + func (l *Logger) SetFilter(f Filter) + func (l *Logger) SetFlusher(f Flusher) + func (l *Logger) SetOutput(w io.Writer) + func (l *Logger) SkipHeader(headers []string)