Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BugsnagHook ¶
BugsnagHook implements logrus.Hook interface.
func NewBugsnagHook ¶
func NewBugsnagHook(apiKey, releaseStage string, lvs []logrus.Level, skip uint) (h *BugsnagHook, err error)
NewBugsnagHook setups Bugsnag configuration and BugsnagHook.
func (*BugsnagHook) Fire ¶
func (h *BugsnagHook) Fire(entry *logrus.Entry) error
Fire forwards an error to Bugsnag.
func (*BugsnagHook) Levels ¶
func (h *BugsnagHook) Levels() []logrus.Level
Levels enumerates the log levels on which the error should be forwarded to bugsnag.
Click to show internal directories.
Click to hide internal directories.