func (sh *SlackrusHook) Levels() []logrus.Level {
	if sh.AcceptedLevels == nil {
		return AllLevels
	}
	return sh.AcceptedLevels
}
Levels sets which levels to sent to slack
package slackrus
import (
	"fmt"
	"sort"
	"github.com/johntdyer/slack-go"
	"github.com/sirupsen/logrus"
)
const (
	VERISON = "0.0.3"
)
type SlackrusHook struct {
	AcceptedLevels []logrus.Level
	HookURL        string
	IconURL        string
	Channel        string
	IconEmoji      string
	Username       string
	Asynchronous   bool
	Extra          map[string]interface{}
	Disabled       bool
	SortFields bool
	SortPriorities map[string]int
}