logger

package
v0.0.0-...-f1b8dfb Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() log.Logger

func Error

func Error() log.Logger

func Info

func Info() log.Logger

func Init

func Init(keyvals ...interface{})

Init adds values to the globalLogger, having them be on all logs

func LogError

func LogError(err error, keyvals ...interface{}) error

Types

type Leveler

type Leveler interface {
	With(keyval ...interface{}) Leveler
	Info() log.Logger
	Debug() log.Logger
	Error() log.Logger
}

Leveler forces a levelLogger to chose a level before being able to log

func With

func With(keyvals ...interface{}) Leveler

func WithCustomDepth

func WithCustomDepth(depth int, keyvals ...interface{}) Leveler

Jump to

Keyboard shortcuts

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