Documentation ¶
Index ¶
- type Mock
- func (_m *Mock) Close()
- func (_m *Mock) Closed() bool
- func (_m *Mock) Critical(v ...interface{}) error
- func (_m *Mock) Criticalf(format string, params ...interface{}) error
- func (_m *Mock) Debug(v ...interface{})
- func (_m *Mock) Debugf(format string, params ...interface{})
- func (_m *Mock) Error(v ...interface{}) error
- func (_m *Mock) Errorf(format string, params ...interface{}) error
- func (_m *Mock) Flush()
- func (_m *Mock) Info(v ...interface{})
- func (_m *Mock) Infof(format string, params ...interface{})
- func (_m *Mock) Log(i ...interface{})
- func (_m *Mock) Trace(v ...interface{})
- func (_m *Mock) Tracef(format string, params ...interface{})
- func (_m *Mock) Warn(v ...interface{}) error
- func (_m *Mock) Warnf(format string, params ...interface{}) error
- func (_m *Mock) WithContext(context ...string) (contextLogger log.T)
- func (_m *Mock) WriteEvent(eventType string, agentVersion string, content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
Mock stands for a mocked log.
func NewEmptyLogMock ¶
func NewEmptyLogMock() *Mock
func NewMockLog ¶
func NewMockLog() *Mock
NewMockLogger returns an instance of Mock with default expectations set.
func NewMockLogWithContext ¶
func NewSilentMockLog ¶
func NewSilentMockLog() *Mock
NewSilentMockLogger returns an instance of Mock with default expectations set.
Click to show internal directories.
Click to hide internal directories.