Documentation ¶
Overview ¶
Package zerologadapter provides a logger that writes to a github.com/rs/zerolog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContextFunc ¶ added in v4.14.0
WithContextFunc adds possibility to get request scoped values from the ctx.Context before logging lines.
func WithoutPGXModule ¶ added in v4.14.0
func WithoutPGXModule() option
WithoutPGXModule disables adding module:pgx to the default logger context.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewContextLogger ¶ added in v4.14.0
func NewContextLogger(options ...option) *Logger
NewContextLogger creates logger that extracts the zerolog.Logger from the context.Context by using `zerolog.Ctx`. The zerolog.DefaultContextLogger will be used if no logger is associated with the context.
Click to show internal directories.
Click to hide internal directories.