logger

package module
v0.0.0-...-f89f072 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

logger

Documentation

Index

Constants

View Source
const (
	EncoderJSON = "json"
	EncoderRaw  = "raw"
)

Variables

This section is empty.

Functions

func NewPgxLogger

func NewPgxLogger(l *Logger) pgx.Logger

Types

type Config

type Config struct {
	Sentry              *sentry.ClientOptions
	DisableLowPriority  bool
	DisableHighPriority bool
	Encoder             string
	IsDevelopment       bool
}

type Logger

type Logger struct {
	*zap.Logger
}

func New

func New(cnf Config, options ...zap.Option) (*Logger, error)

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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