wrappers

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerConnection

func NewLoggerConnection(c driver.Connection, l Logger, truncate bool) driver.Connection

Types

type Event

type Event interface {
	Int(key string, value int) Event
	Str(key, value string) Event
	Time(key string, value time.Time) Event
	Duration(key string, value time.Duration) Event
	Interface(key string, value interface{}) Event

	Msgf(format string, args ...interface{})
}

type ID

type ID string

func NewID

func NewID() ID

func (ID) String

func (i ID) String() string

type Logger

type Logger interface {
	Log() Event
}

func NewZeroLogLogger

func NewZeroLogLogger(l zerolog.Logger) Logger

Jump to

Keyboard shortcuts

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