Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l LoggerInterface)
SetLogger changes the global logger to the one provided.
Types ¶
type LoggerInterface ¶
type LoggerInterface interface { Errorf(format string, args ...interface{}) Infof(format string, args ...interface{}) Debugf(format string, args ...interface{}) Error(msg string) Info(msg string) Debug(msg string) WithFields(fields Fields) LoggerInterface WithError(err error) LoggerInterface }
LoggerInterface is the interface used to abstract logging.
func NewLogrusWrapper ¶
func NewLogrusWrapper(l *logrus.Logger) LoggerInterface
func WithError ¶
func WithError(err error) LoggerInterface
func WithFields ¶
func WithFields(fields Fields) LoggerInterface
Click to show internal directories.
Click to hide internal directories.