logger

package
v0.0.0-...-57779be Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Verbose       bool
	SlowQueryTime int64
}

Logger options

func NewLogger

func NewLogger(verbose bool, slowQueryTime int64) *Logger

NewLogger creates and instance of the logger

func (*Logger) Error

func (l *Logger) Error(query string, err error)

Error logs the error and the query that generated it

func (*Logger) Info

func (l *Logger) Info(str string, v interface{})

Info logs info messages

func (*Logger) Query

func (l *Logger) Query(start time.Time, query string, options *rules.Options)

Query logs the query info

Jump to

Keyboard shortcuts

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