Versions in this module Expand all Collapse all v0 v0.26.0 Dec 20, 2021 Changes in this version + type Entry struct + Latency time.Duration + Proto string + ReceivedTime time.Time + Referer string + RemoteIP string + Request *http.Request + RequestBodySize int64 + RequestHeaderSize int64 + RequestMethod string + RequestURL string + ResponseBodySize int64 + ResponseHeaderSize int64 + ServerIP string + SpanID trace.SpanID + Status int + TraceID trace.TraceID + UserAgent string + type Handler struct + func NewHandler(log Logger, h http.Handler) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Logger interface + Log func(*Entry) + type NCSALogger struct + func NewNCSALogger(w io.Writer, onErr func(error)) *NCSALogger + func (l *NCSALogger) Log(ent *Entry) + type StackdriverLogger struct + func NewStackdriverLogger(w io.Writer, onErr func(error)) *StackdriverLogger + func (l *StackdriverLogger) Log(ent *Entry)