logging

package
v0.0.0-...-8938f7c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Fatal = iota
	Error
	Warn
	Info
	Debug
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	ErrorErr(error)
	Errorf(format string, args ...interface{})
	Error(args ...interface{})
	Warnf(format string, args ...interface{})
	Warn(args ...interface{})
	Infof(format string, args ...interface{})
	Info(args ...interface{})
	Debugf(format string, args ...interface{})
	Debug(args ...interface{})

	WithContext(fields map[string]interface{}) Logger
}

func NewLogrusLogger

func NewLogrusLogger(ctx *cli.Context) Logger

func NewSimpleLogger

func NewSimpleLogger(out io.Writer, level int) Logger

func NewSimpleLoggerNull

func NewSimpleLoggerNull() Logger

Jump to

Keyboard shortcuts

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