lg

package
v0.0.0-...-201756f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(err error, args ...interface{})

func Debug

func Debug(msg string, args ...interface{})

func Fatal

func Fatal(msg string, args ...interface{})

func Info

func Info(msg string, args ...interface{})

func Response

func Response(r *http.Response)

func Warn

func Warn(msg string, args ...interface{})

Types

type F

type F map[string]interface{}

func (F) Args

func (f F) Args() []interface{}

type Logger

type Logger struct {
	log.Logger
}
var DefaultLog *Logger

func New

func New(name string) *Logger

func (*Logger) Check

func (l *Logger) Check(err error, args ...interface{})

func (*Logger) Response

func (l *Logger) Response(r *http.Response)

func (*Logger) Start

func (l *Logger) Start() *Stopwatch

type Stopwatch

type Stopwatch struct {
	// contains filtered or unexported fields
}

func (*Stopwatch) Dt

func (s *Stopwatch) Dt() string

func (*Stopwatch) ElapsedTime

func (s *Stopwatch) ElapsedTime() time.Duration

func (*Stopwatch) IsStopped

func (s *Stopwatch) IsStopped() bool

func (*Stopwatch) Log

func (s *Stopwatch) Log(msg string)

func (*Stopwatch) Stop

func (s *Stopwatch) Stop()

Jump to

Keyboard shortcuts

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