Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgxAdapter ¶
type PgxAdapter struct {
// contains filtered or unexported fields
}
PgxAdapater is an adapter between zap.Logger and pgx.Logger.
func NewPgxAdapter ¶
func NewPgxAdapter(logger *zap.Logger) *PgxAdapter
NewPgxAdapater constructs a PgxAdapater for the given logger.
It adds a service=pgx fields to the logger, all records logged from this logger will have this field.
Click to show internal directories.
Click to hide internal directories.