logger

package
v0.0.0-...-dcf8b3e Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(fields map[string]interface{})
	LogFromClientRequest(fields map[string]interface{}, req *http.Request)
}

func New

func New(output interface{}) (logger Logger, err error)

New creates a new Logger. The output variable sets the destination to which log data will be written. This can be either an io.Writer, or a string. With the latter, this is either one of "STDOUT" or "STDERR", or the path to the file to log to.

Jump to

Keyboard shortcuts

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