Documentation ¶
Index ¶
- type BasicLogger
- func (_m *BasicLogger) Debug(_a0 ...interface{})
- func (_m *BasicLogger) Debugf(format string, args ...interface{})
- func (_m *BasicLogger) Error(_a0 ...interface{})
- func (_m *BasicLogger) Errorf(format string, args ...interface{})
- func (_m *BasicLogger) Fatal(_a0 ...interface{})
- func (_m *BasicLogger) Fatalf(format string, args ...interface{})
- func (_m *BasicLogger) Info(_a0 ...interface{})
- func (_m *BasicLogger) Infof(format string, args ...interface{})
- func (_m *BasicLogger) Log(level logger.Level, args ...interface{})
- func (_m *BasicLogger) Logf(level logger.Level, format string, args ...interface{})
- func (_m *BasicLogger) Panic(_a0 ...interface{})
- func (_m *BasicLogger) Panicf(format string, args ...interface{})
- func (_m *BasicLogger) Trace(_a0 ...interface{})
- func (_m *BasicLogger) Tracef(format string, args ...interface{})
- func (_m *BasicLogger) Warn(_a0 ...interface{})
- func (_m *BasicLogger) Warnf(format string, args ...interface{})
- type Logger
- func (_m *Logger) Debug(_a0 ...interface{})
- func (_m *Logger) Debugf(format string, args ...interface{})
- func (_m *Logger) Error(_a0 ...interface{})
- func (_m *Logger) Errorf(format string, args ...interface{})
- func (_m *Logger) Fatal(_a0 ...interface{})
- func (_m *Logger) Fatalf(format string, args ...interface{})
- func (_m *Logger) GetTags() []string
- func (_m *Logger) Info(_a0 ...interface{})
- func (_m *Logger) Infof(format string, args ...interface{})
- func (_m *Logger) Log(level logger.Level, args ...interface{})
- func (_m *Logger) Logf(level logger.Level, format string, args ...interface{})
- func (_m *Logger) Panic(_a0 ...interface{})
- func (_m *Logger) Panicf(format string, args ...interface{})
- func (_m *Logger) SetDefaultContext(ctx context.Context)
- func (_m *Logger) SetDefaultField(key string, val interface{})
- func (_m *Logger) SetDefaultFields(fields map[string]interface{})
- func (_m *Logger) SetDefaultTags(_a0 []string)
- func (_m *Logger) SetDefaultTraceID(traceID logger.TracerID)
- func (_m *Logger) SetLevel(level logger.Level)
- func (_m *Logger) SetOutput(output io.Writer)
- func (_m *Logger) Trace(_a0 ...interface{})
- func (_m *Logger) Tracef(format string, args ...interface{})
- func (_m *Logger) Warn(_a0 ...interface{})
- func (_m *Logger) Warnf(format string, args ...interface{})
- func (_m *Logger) WithContext(_a0 context.Context) logger.Logger
- func (_m *Logger) WithError(_a0 error) logger.Logger
- func (_m *Logger) WithField(key string, val interface{}) logger.Logger
- func (_m *Logger) WithFields(fields map[string]interface{}) logger.Logger
- func (_m *Logger) WithTags(_a0 []string) logger.Logger
- func (_m *Logger) WithTraceID(traceID logger.TracerID) logger.Logger
- type NewBasicLoggerT
- type NewLoggerT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicLogger ¶ added in v0.0.2
BasicLogger is an autogenerated mock type for the BasicLogger type
func NewBasicLogger ¶ added in v0.0.2
func NewBasicLogger(t NewBasicLoggerT) *BasicLogger
NewBasicLogger creates a new instance of BasicLogger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BasicLogger) Debug ¶ added in v0.0.2
func (_m *BasicLogger) Debug(_a0 ...interface{})
Debug provides a mock function with given fields: _a0
func (*BasicLogger) Debugf ¶ added in v0.0.2
func (_m *BasicLogger) Debugf(format string, args ...interface{})
Debugf provides a mock function with given fields: format, args
func (*BasicLogger) Error ¶ added in v0.0.2
func (_m *BasicLogger) Error(_a0 ...interface{})
Error provides a mock function with given fields: _a0
func (*BasicLogger) Errorf ¶ added in v0.0.2
func (_m *BasicLogger) Errorf(format string, args ...interface{})
Errorf provides a mock function with given fields: format, args
func (*BasicLogger) Fatal ¶ added in v0.0.2
func (_m *BasicLogger) Fatal(_a0 ...interface{})
Fatal provides a mock function with given fields: _a0
func (*BasicLogger) Fatalf ¶ added in v0.0.2
func (_m *BasicLogger) Fatalf(format string, args ...interface{})
Fatalf provides a mock function with given fields: format, args
func (*BasicLogger) Info ¶ added in v0.0.2
func (_m *BasicLogger) Info(_a0 ...interface{})
Info provides a mock function with given fields: _a0
func (*BasicLogger) Infof ¶ added in v0.0.2
func (_m *BasicLogger) Infof(format string, args ...interface{})
Infof provides a mock function with given fields: format, args
func (*BasicLogger) Log ¶ added in v0.0.2
func (_m *BasicLogger) Log(level logger.Level, args ...interface{})
Log provides a mock function with given fields: level, args
func (*BasicLogger) Logf ¶ added in v0.0.2
func (_m *BasicLogger) Logf(level logger.Level, format string, args ...interface{})
Logf provides a mock function with given fields: level, format, args
func (*BasicLogger) Panic ¶ added in v0.0.2
func (_m *BasicLogger) Panic(_a0 ...interface{})
Panic provides a mock function with given fields: _a0
func (*BasicLogger) Panicf ¶ added in v0.0.2
func (_m *BasicLogger) Panicf(format string, args ...interface{})
Panicf provides a mock function with given fields: format, args
func (*BasicLogger) Trace ¶ added in v0.0.2
func (_m *BasicLogger) Trace(_a0 ...interface{})
Trace provides a mock function with given fields: _a0
func (*BasicLogger) Tracef ¶ added in v0.0.2
func (_m *BasicLogger) Tracef(format string, args ...interface{})
Tracef provides a mock function with given fields: format, args
func (*BasicLogger) Warn ¶ added in v0.0.2
func (_m *BasicLogger) Warn(_a0 ...interface{})
Warn provides a mock function with given fields: _a0
func (*BasicLogger) Warnf ¶ added in v0.0.2
func (_m *BasicLogger) Warnf(format string, args ...interface{})
Warnf provides a mock function with given fields: format, args
type Logger ¶
Logger is an autogenerated mock type for the Logger type
func NewLogger ¶
func NewLogger(t NewLoggerT) *Logger
NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Logger) Debug ¶
func (_m *Logger) Debug(_a0 ...interface{})
Debug provides a mock function with given fields: _a0
func (*Logger) Error ¶
func (_m *Logger) Error(_a0 ...interface{})
Error provides a mock function with given fields: _a0
func (*Logger) Fatal ¶
func (_m *Logger) Fatal(_a0 ...interface{})
Fatal provides a mock function with given fields: _a0
func (*Logger) Info ¶
func (_m *Logger) Info(_a0 ...interface{})
Info provides a mock function with given fields: _a0
func (*Logger) Panic ¶
func (_m *Logger) Panic(_a0 ...interface{})
Panic provides a mock function with given fields: _a0
func (*Logger) SetDefaultContext ¶
SetDefaultContext provides a mock function with given fields: ctx
func (*Logger) SetDefaultField ¶
SetDefaultField provides a mock function with given fields: key, val
func (*Logger) SetDefaultFields ¶
SetDefaultFields provides a mock function with given fields: fields
func (*Logger) SetDefaultTags ¶
SetDefaultTags provides a mock function with given fields: _a0
func (*Logger) SetDefaultTraceID ¶
SetDefaultTraceID provides a mock function with given fields: traceID
func (*Logger) Trace ¶
func (_m *Logger) Trace(_a0 ...interface{})
Trace provides a mock function with given fields: _a0
func (*Logger) Warn ¶
func (_m *Logger) Warn(_a0 ...interface{})
Warn provides a mock function with given fields: _a0
func (*Logger) WithContext ¶
WithContext provides a mock function with given fields: _a0
func (*Logger) WithFields ¶
WithFields provides a mock function with given fields: fields