Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is a simple, yet thread-safe, logger intended for use in unit tests.
type MockLogger ¶
type MockLogger struct {
DebugLines, InfoLines, ErrLines []string
}
MockLogger is a fake logger that accumulates all the inputs.
It can be used in tests to ensure that certain messages was logged with correct severity.
func (*MockLogger) Debug ¶
func (t *MockLogger) Debug(msg string, keyvals ...interface{})
Debug saves a debug message.
func (*MockLogger) Error ¶
func (t *MockLogger) Error(msg string, keyvals ...interface{})
Error saves an error message.
func (*MockLogger) Info ¶
func (t *MockLogger) Info(msg string, keyvals ...interface{})
Info saves an info message.
Click to show internal directories.
Click to hide internal directories.