slacklog

package
v0.0.0-...-c0411a1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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