slacklog

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 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