logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 2 Imported by: 1

README

logger

For use as a logger for gocraft/dbr

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*log.Logger
	VerboseOutput bool
}

func New

func New(out io.Writer) *Logger

func (*Logger) Event

func (l *Logger) Event(eventName string)

func (*Logger) EventErr

func (l *Logger) EventErr(eventName string, err error) error

func (*Logger) EventErrKv

func (l *Logger) EventErrKv(eventName string, err error, kvs map[string]string) error

func (*Logger) EventKv

func (l *Logger) EventKv(eventName string, kvs map[string]string)

func (*Logger) Timing

func (l *Logger) Timing(eventName string, nanoseconds int64)

func (*Logger) TimingKv

func (l *Logger) TimingKv(eventName string, nanoseconds int64, kvs map[string]string)

func (*Logger) Verbose added in v1.2.1

func (l *Logger) Verbose() bool

Jump to

Keyboard shortcuts

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