2022-03-04 00:13:46 +08:00
|
|
|
// Copyright (c) Mainflux
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
package logger
|
|
|
|
|
|
|
|
var _ Logger = (*loggerMock)(nil)
|
|
|
|
|
|
|
|
type loggerMock struct{}
|
|
|
|
|
|
|
|
// NewMock returns wrapped go kit logger mock.
|
|
|
|
func NewMock() Logger {
|
|
|
|
return &loggerMock{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l loggerMock) Debug(msg string) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l loggerMock) Info(msg string) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l loggerMock) Warn(msg string) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (l loggerMock) Error(msg string) {
|
|
|
|
}
|
2023-02-21 20:02:57 +08:00
|
|
|
|
2023-02-23 03:50:51 +08:00
|
|
|
func (l loggerMock) Fatal(msg string) {
|
2023-02-21 20:02:57 +08:00
|
|
|
}
|