log

package
v0.0.0-...-d880922 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InstanceZapLogger int = iota
	InstanceLogrusLogger
)

Variables

This section is empty.

Functions

func NewLoggerFactory

func NewLoggerFactory(instance int) (logger.Logger, error)

func NewLogrusLogger

func NewLogrusLogger() logger.Logger

func NewZapLogger

func NewZapLogger() (logger.Logger, error)

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) WithError

func (l LoggerEntryMock) WithError(_ error) logger.Logger

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) WithError

func (l LoggerMock) WithError(_ error) logger.Logger

func (LoggerMock) WithFields

func (l LoggerMock) WithFields(_ logger.Fields) logger.Logger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL