Documentation ¶
Index ¶
- type DummyLogger
- func (l *DummyLogger) CheckContent(t *testing.T, expectedStr string)
- func (l *DummyLogger) CheckForProhibited(t *testing.T, reason, needle string)
- func (l *DummyLogger) Debugf(format string, v ...interface{})
- func (l *DummyLogger) Drain()
- func (l *DummyLogger) Errorf(format string, v ...interface{})
- func (l *DummyLogger) Fatalf(format string, v ...interface{})
- func (l *DummyLogger) Noticef(format string, v ...interface{})
- func (l *DummyLogger) Tracef(format string, v ...interface{})
- func (l *DummyLogger) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyLogger ¶
func NewDummyLogger ¶
func NewDummyLogger(retain uint) *DummyLogger
NewDummyLogger creates a dummy logger and allows to ask for logs to be retained instead of just keeping the most recent. Use retain to provide an initial size estimate on messages (not to provide a max capacity).
func (*DummyLogger) CheckContent ¶
func (l *DummyLogger) CheckContent(t *testing.T, expectedStr string)
func (*DummyLogger) CheckForProhibited ¶
func (l *DummyLogger) CheckForProhibited(t *testing.T, reason, needle string)
func (*DummyLogger) Debugf ¶
func (l *DummyLogger) Debugf(format string, v ...interface{})
func (*DummyLogger) Drain ¶
func (l *DummyLogger) Drain()
func (*DummyLogger) Errorf ¶
func (l *DummyLogger) Errorf(format string, v ...interface{})
func (*DummyLogger) Fatalf ¶
func (l *DummyLogger) Fatalf(format string, v ...interface{})
func (*DummyLogger) Noticef ¶
func (l *DummyLogger) Noticef(format string, v ...interface{})
func (*DummyLogger) Tracef ¶
func (l *DummyLogger) Tracef(format string, v ...interface{})
func (*DummyLogger) Warnf ¶
func (l *DummyLogger) Warnf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.