Documentation ¶
Index ¶
- func NewLogger() *logrus.Logger
- type Service
- func (service *Service) AddField(name string, value interface{})
- func (service *Service) Debug(message string, fields api.LogFields)
- func (service *Service) DebugError(message string, err error, fields api.LogFields)
- func (service *Service) Fatal(message string, fields api.LogFields)
- func (service *Service) FatalError(message string, err error, fields api.LogFields)
- func (service *Service) Info(message string, fields api.LogFields)
- func (service *Service) InfoError(message string, err error, fields api.LogFields)
- func (service *Service) Panic(message string, fields api.LogFields)
- func (service *Service) PanicError(message string, err error, fields api.LogFields)
- func (service *Service) Print(message string, fields api.LogFields)
- func (service *Service) PrintError(message string, err error, fields api.LogFields)
- func (service *Service) Warn(message string, fields api.LogFields)
- func (service *Service) WarnError(message string, err error, fields api.LogFields)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
Service implementation of logging using `logrus`.
func (*Service) DebugError ¶
DebugError outputs a debug message and error to the log.
func (*Service) FatalError ¶
FatalError outputs a fatal message and error to the log.
func (*Service) PanicError ¶
PanicError outputs a panic message and error to the log.
func (*Service) PrintError ¶
PrintError outputs a message and error to the log.
Click to show internal directories.
Click to hide internal directories.