Documentation ¶
Overview ¶
Package zaplog provides a structured request/response logging implementation based on zap (go.uber.org/zap). It provides much the same functionality and API as github.com/go-chi/httplog, but backed by zap instead of zerolog (github.com/rs/zerolog).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct { // Concise mode includes fewer log details during the request flow. For example // excluding details like request content length, user-agent and other details. // This is useful if during development your console is too noisy. Concise bool // SkipHeaders are additional headers which are redacted from the logs SkipHeaders []string }
Click to show internal directories.
Click to hide internal directories.