slacklog

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogHook

type LogHook struct {
	Slack        *slack.Client
	ErrorChannel string
}

func NewLogHook

func NewLogHook(token string, channel string) *LogHook

func (*LogHook) Fire

func (t *LogHook) Fire(e *logrus.Entry) error

func (*LogHook) Levels

func (t *LogHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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