logger

package
v0.0.0-...-b801540 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: BSD-2-Clause 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(v *viper.Viper) 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