2020-04-29 20:51:32 +00:00
|
|
|
package logger
|
|
|
|
|
|
|
|
// MockWriteManager does nothing and is provided for testing purposes
|
|
|
|
type MockWriteManager struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockWriteManager creates an OutputManager that does nothing for testing purposes
|
|
|
|
func NewMockWriteManager() OutputManager {
|
|
|
|
return &MockWriteManager{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Append is a mock stub
|
2020-07-23 23:36:31 +00:00
|
|
|
func (m *MockWriteManager) Append(data []byte, target LogOutput) {
|
2020-04-29 20:51:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Shutdown is a mock stub
|
|
|
|
func (m *MockWriteManager) Shutdown() {
|
|
|
|
}
|