Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoLogger ¶
type GoLogger struct {
// contains filtered or unexported fields
}
GoLogger wraps the builtin log.Logger into our own Logger
func NewGoLogger ¶
NewGoLogger returns a GoLogger wrapping the passed log.Logger
type Logger ¶
type Logger interface { Debug(msg string, ctx ...interface{}) Info(msg string, ctx ...interface{}) Warn(msg string, ctx ...interface{}) Error(msg string, ctx ...interface{}) Crit(msg string, ctx ...interface{}) }
Logger provides a seemingly sane logging interface.
type PgxLogAdapter ¶
type PgxLogAdapter struct {
// contains filtered or unexported fields
}
PgxLogAdapter wraps anything that satisfies Logger into pgx.Logger
func NewPgxLogAdapter ¶
func NewPgxLogAdapter(l Logger) *PgxLogAdapter
NewPgxLogAdapter returns a PgxLogAdapter wrapping the passed Logger.
Click to show internal directories.
Click to hide internal directories.