log

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = "debug"
	INFO  = "info"
	ERROR = "error"
	FATAL = "fatal"
)

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flagSet *flag.FlagSet)

func SetLogLevel

func SetLogLevel(level string)

Types

type Data

type Data map[string]interface{}

type LogType

type LogType uint
const (
	Lager LogType = iota
)

type Logger

type Logger interface {
	Debug(message string, data ...Data)
	Info(message string, data ...Data)
	Error(message string, err error, data ...Data)
	Fatal(message string, err error, data ...Data)
}

func LogFactory

func LogFactory(name string, logType LogType, writer io.Writer) Logger

func NewLager

func NewLager(log *logger) Logger

Jump to

Keyboard shortcuts

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