Documentation ¶
Index ¶
- type LoggerMock
- func (l *LoggerMock) CopyWith(prefix string, isDebug bool) log.Logger
- func (l *LoggerMock) Debug(...interface{})
- func (l *LoggerMock) DebugEnabled() bool
- func (l *LoggerMock) Debugf(string, ...interface{})
- func (l *LoggerMock) Debugln(...interface{})
- func (l *LoggerMock) Error(args ...interface{})
- func (l *LoggerMock) Errorf(format string, args ...interface{})
- func (l *LoggerMock) Errorln(args ...interface{})
- func (l *LoggerMock) Info(...interface{})
- func (l *LoggerMock) Infof(string, ...interface{})
- func (l *LoggerMock) Infoln(...interface{})
- func (l *LoggerMock) Panic(args ...interface{})
- func (l *LoggerMock) Panicf(format string, args ...interface{})
- func (l *LoggerMock) Panicln(args ...interface{})
- func (l *LoggerMock) Prefix() string
- func (l *LoggerMock) Warn(args ...interface{})
- func (l *LoggerMock) Warnf(format string, args ...interface{})
- func (l *LoggerMock) Warnln(args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerMock ¶
type LoggerMock struct { mock.Mock log.Logger ReceivedCall chan struct{} Warns []string Errors []string Panics []string }
LoggerMock conforms to the Secretless Logger interface
func NewLogger ¶
func NewLogger() *LoggerMock
NewLogger creates a mock that conforms to the Secretless Logger interface
func (*LoggerMock) CopyWith ¶
func (l *LoggerMock) CopyWith(prefix string, isDebug bool) log.Logger
CopyWith mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Debug ¶
func (l *LoggerMock) Debug(...interface{})
Debug mocks the method of the same name on the log.Logger interface
func (*LoggerMock) DebugEnabled ¶
func (l *LoggerMock) DebugEnabled() bool
DebugEnabled mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Debugf ¶
func (l *LoggerMock) Debugf(string, ...interface{})
Debugf mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Debugln ¶
func (l *LoggerMock) Debugln(...interface{})
Debugln mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Error ¶
func (l *LoggerMock) Error(args ...interface{})
Error mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Errorf ¶
func (l *LoggerMock) Errorf(format string, args ...interface{})
Errorf mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Errorln ¶
func (l *LoggerMock) Errorln(args ...interface{})
Errorln mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Info ¶
func (l *LoggerMock) Info(...interface{})
Info mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Infof ¶
func (l *LoggerMock) Infof(string, ...interface{})
Infof mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Infoln ¶
func (l *LoggerMock) Infoln(...interface{})
Infoln mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Panic ¶
func (l *LoggerMock) Panic(args ...interface{})
Panic mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Panicf ¶
func (l *LoggerMock) Panicf(format string, args ...interface{})
Panicf mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Panicln ¶
func (l *LoggerMock) Panicln(args ...interface{})
Panicln mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Prefix ¶
func (l *LoggerMock) Prefix() string
Prefix mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Warn ¶
func (l *LoggerMock) Warn(args ...interface{})
Warn mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Warnf ¶
func (l *LoggerMock) Warnf(format string, args ...interface{})
Warnf mocks the method of the same name on the log.Logger interface
func (*LoggerMock) Warnln ¶
func (l *LoggerMock) Warnln(args ...interface{})
Warnln mocks the method of the same name on the log.Logger interface