Versions in this module Expand all Collapse all v0 v0.2.0 Sep 18, 2023 v0.1.0 Aug 28, 2023 Changes in this version + const HTTPKey + const LabelKey + const LevelAlert + const LevelCritical + const LevelDebug + const LevelDefault + const LevelEmergency + const LevelError + const LevelInfo + const LevelNotice + const LevelWarning + const MessageKey + const SeverityKey + const SourceLocationKey + const SpanIDKey + const TraceKey + const TraceSampledKey + func MakeHTTPAttr(req *http.Request, res *http.Response) slog.Attr + func MakeHTTPAttrFromHTTPPayload(p HTTPPayload) slog.Attr + func New(w io.Writer, opts HandlerOptions) *slog.Logger + func NewHandler(w io.Writer, opts HandlerOptions) slog.Handler + type GAELatency struct + Nanos int32 + Seconds int64 + type HTTPPayload struct + CacheFillBytes string + CacheHit bool + CacheLookup bool + CacheValidatedWithOriginServer bool + Latency Latency + Protocol string + Referer string + RemoteIP string + RequestMethod string + RequestSize string + RequestURL string + ResponseSize string + ServerIP string + Status int + UserAgent string + func MakeHTTPPayload(req *http.Request, res *http.Response) HTTPPayload + type HandlerOptions struct + AddSource bool + Level slog.Leveler + ProjectID string + type Latency any + func MakeLatency(d time.Duration, isGKE bool) Latency + type LogEntrySourceLocation struct + File string + Function string + Line string