Skip to content

dragon3/logrus-typetalk-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logrus-typetalk-hook

Typetalk hook for Logrus.

Use

package main

import (
	logrus "github.com/sirupsen/logrus"
	"github.com/dragon3/logrus-typetalk-hook"
)

func main() {
	logrus.AddHook(&typetalk.TypetalkHook{
		BotURL:        "https://typetalk.com/api/v1/topics/000?typetalkToken=abcdefghijklmnopqrstuvwxyz",
		AcceptedLevels: typetalk.LevelThreshold(logrus.DebugLevel),
	})

	logrus.Warn("warn")
	logrus.Info("info")
	logrus.Debug("debug")
}

Parameters

Required

Installation

go get github.com/dragon3/logrus-typetalk-hook

Credits

Based on hipchat handler by nuboLAB and slack handler by John Dyer

About

Typetalk Hook for Logrus

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages