Versions in this module Expand all Collapse all v2 v2.0.6 Jan 6, 2021 Changes in this version + var CombinedLog = New(`%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"`) + var CommonLog = New(`%h %l %u %t "%r" %>s %b`) + var ErrInvalidRuneSequence = errors.New("invalid rune sequence found in format") + var ErrUnimplemented = errors.New("pattern unimplemented") + type ApacheLog struct + func New(format string) (*ApacheLog, error) + func (al *ApacheLog) Wrap(h http.Handler, dst io.Writer) http.Handler + func (al *ApacheLog) WriteLog(dst io.Writer, ctx LogCtx) error + type Format struct + func (f *Format) WriteTo(dst io.Writer, ctx LogCtx) error + type FormatWriteFunc func(io.Writer, LogCtx) error + func (f FormatWriteFunc) WriteTo(dst io.Writer, ctx LogCtx) error + type FormatWriter interface + WriteTo func(io.Writer, LogCtx) error + type LogCtx interface + ElapsedTime func() time.Duration + Request func() *http.Request + RequestTime func() time.Time + ResponseContentLength func() int64 + ResponseHeader func() http.Header + ResponseStatus func() int + ResponseTime func() time.Time Other modules containing this package github.com/lestrrat-go/apache-logformat