Documentation ¶
Index ¶
- type Logger
- type MockLog
- func (m *MockLog) Debug(args ...interface{})
- func (m *MockLog) Debugf(template string, args ...interface{})
- func (m *MockLog) Error(args ...interface{})
- func (m *MockLog) Errorf(template string, args ...interface{})
- func (m *MockLog) Fatal(args ...interface{})
- func (m *MockLog) Fatalf(template string, args ...interface{})
- func (m *MockLog) GetLogs() []string
- func (m *MockLog) Info(args ...interface{})
- func (m *MockLog) Infof(template string, args ...interface{})
- func (m *MockLog) Panic(args ...interface{})
- func (m *MockLog) Panicf(template string, args ...interface{})
- func (m MockLog) Warn(args ...interface{})
- func (m *MockLog) Warnf(template string, args ...interface{})
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{}) }
type MockLog ¶
type MockLog struct {
// contains filtered or unexported fields
}
func GetMockLogger ¶
func GetMockLogger() *MockLog
Click to show internal directories.
Click to hide internal directories.