Documentation
¶
Index ¶
- Variables
- func LevelThreshold(l logrus.Level) []logrus.Level
- func SendLinkMsg(title string, text string, messageUrl string, picUrl string) logrus.Fields
- func SendMarkdownMsg(title string, text string, atMobiles []string, isAtAll bool) logrus.Fields
- func SendTextMsg(content string, atMobiles []string, isAtAll bool) logrus.Fields
- type DingTalkHook
- type DingTalkResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var AllLevels = []logrus.Level{ logrus.WarnLevel, logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel, logrus.DebugLevel, }
Supported log levels
Functions ¶
func LevelThreshold ¶
Returns every logging level above and including the given parameter.
func SendLinkMsg ¶
func SendMarkdownMsg ¶
Types ¶
type DingTalkHook ¶
func (*DingTalkHook) Levels ¶
func (dh *DingTalkHook) Levels() []logrus.Level
type DingTalkResponse ¶
Click to show internal directories.
Click to hide internal directories.