logs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 4 Imported by: 30

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	ERROR
)

Variables

This section is empty.

Functions

func InitFileLogger

func InitFileLogger(level Level, filePath string) func()

func InitStdoutLogger

func InitStdoutLogger(level Level) func()

func NewGoLoggingLogger

func NewGoLoggingLogger(level Level, writer io.Writer) *goLoggingLogger

Types

type Args

type Args []Param

type Level

type Level int

type Logger

type Logger interface {
	Debug(str string, args ...Args)
	Info(str string, args ...Args)
	Error(str string, args ...Args)
	ErrorRet(err error, str string, args ...Args) error
	Trace(level Level, args ...Args) func()
}

func GetLogger

func GetLogger() Logger

type Param

type Param struct {
	Name  string
	Value interface{}
}

func (Param) String

func (param Param) String() string

Jump to

Keyboard shortcuts

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