dorajistyle / logrus-octokit-hook

Logrus octokit hook. You can send logrus logs to github via octokit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logrus-octokit-hook

Caution : Github don't like to use github issue as a log hook. If you send issues oftenly, your github account can be block. Use this hook carefully.:D

Package logrus-octokit-hook provides a Github hook using the octokit for the logrus loggin package.

Mehtod

NewOctokitHook(gitHubAPIURL string,
		userAgent string,
		accessToken string,
		owner string,
		repo string))

Example

logrus.AddHook(octokit.NewOctokitHook("https://api.github.com"
		"Goyangi(using Octokit Go) 1.0",
		"012323abcdabcdgithubtoken",
		"dorajistyle",
		"goyangi"))

---

logrus-octokit-hook is under the MIT license

About

Logrus octokit hook. You can send logrus logs to github via octokit.

License:MIT License


Languages

Language:Go 100.0%