Skip to content

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

License

Notifications You must be signed in to change notification settings

dorajistyle/logrus-octokit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages