logger

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2020 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPGX

func NewPGX(l zerolog.Logger) pgx.Logger

func Setup

func Setup() error

Types

type Format

type Format uint
const (
	FormatAuto Format = iota
	FormatZerolog
	FormatHuman
)

func (Format) String

func (f Format) String() string

type Level

type Level int
const (
	LevelBegin Level = iota - 2
	LevelDebug
	LevelInfo // Default, zero-initialized value
	LevelWarn
	LevelError
	LevelFatal

	LevelEnd
)

func (Level) String

func (f Level) String() string

type PGX

type PGX struct {
	// contains filtered or unexported fields
}

func (PGX) Log

func (l PGX) Log(level pgx.LogLevel, msg string, data map[string]interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL