Documentation ¶
Index ¶
- Constants
- func NewLoggerFactory(instance int) (logger.Logger, error)
- func NewLogrusLogger() logger.Logger
- func NewZapLogger() (logger.Logger, error)
- type LoggerEntryMock
- func (l LoggerEntryMock) Errorf(_ string, _ ...interface{})
- func (l LoggerEntryMock) Fatalln(_ ...interface{})
- func (l LoggerEntryMock) Infof(_ string, _ ...interface{})
- func (l LoggerEntryMock) Warnf(_ string, _ ...interface{})
- func (l LoggerEntryMock) WithError(_ error) logger.Logger
- func (l LoggerEntryMock) WithFields(_ logger.Fields) logger.Logger
- type LoggerMock
- func (l LoggerMock) Errorf(_ string, _ ...interface{})
- func (l LoggerMock) Fatalln(_ ...interface{})
- func (l LoggerMock) Infof(_ string, _ ...interface{})
- func (l LoggerMock) Warnf(_ string, _ ...interface{})
- func (l LoggerMock) WithError(_ error) logger.Logger
- func (l LoggerMock) WithFields(_ logger.Fields) logger.Logger
Constants ¶
View Source
const ( InstanceZapLogger int = iota InstanceLogrusLogger )
Variables ¶
This section is empty.
Functions ¶
func NewLogrusLogger ¶
func NewZapLogger ¶
Types ¶
type LoggerEntryMock ¶
type LoggerEntryMock struct{}
func (LoggerEntryMock) Errorf ¶
func (l LoggerEntryMock) Errorf(_ string, _ ...interface{})
func (LoggerEntryMock) Fatalln ¶
func (l LoggerEntryMock) Fatalln(_ ...interface{})
func (LoggerEntryMock) Infof ¶
func (l LoggerEntryMock) Infof(_ string, _ ...interface{})
func (LoggerEntryMock) Warnf ¶
func (l LoggerEntryMock) Warnf(_ string, _ ...interface{})
func (LoggerEntryMock) WithFields ¶
func (l LoggerEntryMock) WithFields(_ logger.Fields) logger.Logger
type LoggerMock ¶
type LoggerMock struct{}
func (LoggerMock) Errorf ¶
func (l LoggerMock) Errorf(_ string, _ ...interface{})
func (LoggerMock) Fatalln ¶
func (l LoggerMock) Fatalln(_ ...interface{})
func (LoggerMock) Infof ¶
func (l LoggerMock) Infof(_ string, _ ...interface{})
func (LoggerMock) Warnf ¶
func (l LoggerMock) Warnf(_ string, _ ...interface{})
func (LoggerMock) WithFields ¶
func (l LoggerMock) WithFields(_ logger.Fields) logger.Logger
Click to show internal directories.
Click to hide internal directories.