logger

package
v0.0.0-...-f83f314 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(...interface{})
	Info(...interface{})
	Warn(...interface{})
	Error(...interface{})
	Panic(...interface{})
	Fatal(...interface{})

	Debugf(string, ...interface{})
	Infof(string, ...interface{})
	Warnf(string, ...interface{})
	Errorf(string, ...interface{})
	Panicf(string, ...interface{})
	Fatalf(string, ...interface{})
}

func GetLogger

func GetLogger(logLevel string) (log Logger, err error)

type MockLog

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

func GetMockLogger

func GetMockLogger() *MockLog

func (*MockLog) Debug

func (m *MockLog) Debug(args ...interface{})

func (*MockLog) Debugf

func (m *MockLog) Debugf(template string, args ...interface{})

func (*MockLog) Error

func (m *MockLog) Error(args ...interface{})

func (*MockLog) Errorf

func (m *MockLog) Errorf(template string, args ...interface{})

func (*MockLog) Fatal

func (m *MockLog) Fatal(args ...interface{})

func (*MockLog) Fatalf

func (m *MockLog) Fatalf(template string, args ...interface{})

func (*MockLog) GetLogs

func (m *MockLog) GetLogs() []string

func (*MockLog) Info

func (m *MockLog) Info(args ...interface{})

func (*MockLog) Infof

func (m *MockLog) Infof(template string, args ...interface{})

func (*MockLog) Panic

func (m *MockLog) Panic(args ...interface{})

func (*MockLog) Panicf

func (m *MockLog) Panicf(template string, args ...interface{})

func (MockLog) Warn

func (m MockLog) Warn(args ...interface{})

func (*MockLog) Warnf

func (m *MockLog) Warnf(template string, args ...interface{})

Jump to

Keyboard shortcuts

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