pgx/log
urso 044ba47522 Add zerologadapter.NewContextLogger
This change introduces a new zerologadapter that allows
users to pass the actual logger via context.Context. Especially HTTP
middleware might choose to use `(*zerolog.Logger).WithContext` and
`zerolog.Ctx`. Allowing users to extract the logger from the context
keeps the full enriched logger available when pgx emits logs.
2021-10-30 08:52:59 -05:00
..
kitlogadapter switch from github.com/go-kit/kit/log to github.com/go-kit/log 2021-07-17 08:39:31 -05:00
log15adapter Add context.Context to Logger interface 2019-08-03 16:16:21 -05:00
logrusadapter Add context.Context to Logger interface 2019-08-03 16:16:21 -05:00
testingadapter Add context.Context to Logger interface 2019-08-03 16:16:21 -05:00
zapadapter Use zap.Any for handling interface{} -> zap.Field conversion 2021-07-06 20:18:16 -05:00
zerologadapter Add zerologadapter.NewContextLogger 2021-10-30 08:52:59 -05:00