logging

package
v0.0.0-...-8d921ee Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 13 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

type MockLogger

type MockLogger struct {
	// contains filtered or unexported fields
}

Mock of Logger interface

func NewMockLogger

func NewMockLogger(ctrl *gomock.Controller) *MockLogger

func (*MockLogger) Debug

func (_m *MockLogger) Debug(args ...interface{})

func (*MockLogger) Debugf

func (_m *MockLogger) Debugf(format string, args ...interface{})

func (*MockLogger) EXPECT

func (_m *MockLogger) EXPECT() *_MockLoggerRecorder

func (*MockLogger) Error

func (_m *MockLogger) Error(args ...interface{})

func (*MockLogger) ErrorErr

func (_m *MockLogger) ErrorErr(_param0 error)

func (*MockLogger) Errorf

func (_m *MockLogger) Errorf(format string, args ...interface{})

func (*MockLogger) Info

func (_m *MockLogger) Info(args ...interface{})

func (*MockLogger) Infof

func (_m *MockLogger) Infof(format string, args ...interface{})

func (*MockLogger) Warn

func (_m *MockLogger) Warn(args ...interface{})

func (*MockLogger) Warnf

func (_m *MockLogger) Warnf(format string, args ...interface{})

func (*MockLogger) WithContext

func (_m *MockLogger) WithContext(fields map[string]interface{}) Logger

Jump to

Keyboard shortcuts

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