Documentation ¶
Index ¶
- Constants
- func StderrOutputForFunc(f func()) string
- func StdoutOutputForFunc(f func()) string
- type Config
- type CustomError
- type Level
- type MockLogger
- func (m *MockLogger) Debug(args ...interface{})
- func (m *MockLogger) Debugf(format string, args ...interface{})
- func (m *MockLogger) Error(args ...interface{})
- func (m *MockLogger) Errorf(format string, args ...interface{})
- func (m *MockLogger) Info(args ...interface{})
- func (m *MockLogger) Infof(format string, args ...interface{})
- func (m *MockLogger) Log(args ...interface{})
- func (m *MockLogger) Logf(format string, args ...interface{})
- func (m *MockLogger) Notice(args ...interface{})
- func (m *MockLogger) Noticef(format string, args ...interface{})
- func (m *MockLogger) Warn(args ...interface{})
- func (m *MockLogger) Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( DEBUGLOG = iota + 1 INFOLOG NOTICELOG WARNLOG ERRORLOG FATALLOG )
Variables ¶
This section is empty.
Functions ¶
func StderrOutputForFunc ¶
func StderrOutputForFunc(f func()) string
func StdoutOutputForFunc ¶
func StdoutOutputForFunc(f func()) string
Types ¶
type Config ¶ added in v1.3.0
func NewMockConfig ¶ added in v0.2.0
type CustomError ¶ added in v1.1.1
type CustomError struct {
ErrorMessage string
}
func (CustomError) Error ¶ added in v1.1.1
func (c CustomError) Error() string
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
func NewMockLogger ¶
func NewMockLogger(level int) *MockLogger
func (*MockLogger) Debug ¶
func (m *MockLogger) Debug(args ...interface{})
func (*MockLogger) Debugf ¶
func (m *MockLogger) Debugf(format string, args ...interface{})
func (*MockLogger) Error ¶
func (m *MockLogger) Error(args ...interface{})
func (*MockLogger) Errorf ¶
func (m *MockLogger) Errorf(format string, args ...interface{})
func (*MockLogger) Info ¶ added in v1.1.1
func (m *MockLogger) Info(args ...interface{})
func (*MockLogger) Infof ¶ added in v1.1.1
func (m *MockLogger) Infof(format string, args ...interface{})
func (*MockLogger) Log ¶
func (m *MockLogger) Log(args ...interface{})
func (*MockLogger) Logf ¶
func (m *MockLogger) Logf(format string, args ...interface{})
func (*MockLogger) Notice ¶ added in v1.1.1
func (m *MockLogger) Notice(args ...interface{})
func (*MockLogger) Noticef ¶ added in v1.1.1
func (m *MockLogger) Noticef(format string, args ...interface{})
func (*MockLogger) Warn ¶ added in v1.1.1
func (m *MockLogger) Warn(args ...interface{})
func (*MockLogger) Warnf ¶ added in v1.1.1
func (m *MockLogger) Warnf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.