Skip to content

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

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages