Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBearyChatHook ¶
func NewBearyChatHook(config config.Configuration) (hook logrus.Hook, err error)
Types ¶
type BearyChatHook ¶
type BearyChatHook struct {
AcceptedLevels []logrus.Level
Url string
Channel string
User string
Markdown bool
Async bool
// contains filtered or unexported fields
}
func (*BearyChatHook) Fire ¶
func (p *BearyChatHook) Fire(e *logrus.Entry) (err error)
Fire - Sent event to slack
func (*BearyChatHook) Levels ¶
func (p *BearyChatHook) Levels() []logrus.Level
Levels sets which levels to sent to slack
Click to show internal directories.
Click to hide internal directories.