Versions in this module Expand all Collapse all v0 v0.2.0 Mar 7, 2023 Changes in this version type AccessLog + RequestHeader http.Header + ResponseHeader http.Header v0.1.0 Dec 21, 2022 Changes in this version + var Clock func() time.Time = func() time.Time + func CombinedDLogFormat(l *AccessLog) string + func CombinedLogFormat(l *AccessLog) string + func JSONLogFormat(l *AccessLog) string + func New(loggers ...Logger) func(http.Handler) http.Handler + func Wrap(next http.Handler, loggers ...Logger) http.Handler + type AccessLog struct + AccessedAt time.Time + BasicAuthUser string + BodyByteSent int + FirstSentAt time.Time + FirstSentTime int64 + LastSentAt time.Time + Referer string + RemoteAddr string + Request string + ResponseTime int64 + StatusCode int + UserAgent string + func NewAccessLog(r *http.Request) *AccessLog + func (l *AccessLog) WriteResponseInfo(w *ResponseWriter) *AccessLog + type FormatLogger struct + func CombinedDLogger(w io.Writer) FormatLogger + func CombinedLogger(w io.Writer) FormatLogger + func JSONLogger(w io.Writer) FormatLogger + func (logger FormatLogger) WriteAccessLog(l *AccessLog) + type LogFormat func(*AccessLog) string + type Logger interface + WriteAccessLog func(*AccessLog) + type ResponseWriter struct + BodyByteSent int + FirstWriteTime time.Time + LastWriteTime time.Time + StatusCode int + func (w *ResponseWriter) Write(data []byte) (int, error) + func (w *ResponseWriter) WriteHeader(statusCode int)