Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heroku/rollrus
Logrus Rollbar Hook
https://github.com/heroku/rollrus
go logrus logrus-hook rollbar
Last synced: 3 months ago
JSON representation
Logrus Rollbar Hook
- Host: GitHub
- URL: https://github.com/heroku/rollrus
- Owner: heroku
- License: mit
- Created: 2015-01-20T23:34:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T13:19:28.000Z (about 1 year ago)
- Last Synced: 2024-06-18T15:42:02.959Z (5 months ago)
- Topics: go, logrus, logrus-hook, rollbar
- Language: Go
- Size: 103 KB
- Stars: 23
- Watchers: 99
- Forks: 30
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[![CircleCI](https://circleci.com/gh/heroku/rollrus.svg?style=svg)](https://circleci.com/gh/heroku/rollrus) [![GoDoc](https://godoc.org/github.com/heroku/rollrus?status.svg)](https://godoc.org/github.com/heroku/rollrus)
# What
Rollrus is what happens when [Logrus](https://github.com/sirupsen/logrus) meets [Rollbar](github.com/rollbar/rollbar-go).
Install the hook into a Logrus logger to report logged messages to Rollbar.
By default, only messages with the Error, Fatal, or Panic level are reported.Panic and Fatal errors are reported synchronously to help ensure that logs are delivered before the process exits.
All other messages are delivered in the background, and may be dropped if the queue is full.If the error includes a [`StackTrace`](https://godoc.org/github.com/pkg/errors#StackTrace), that `StackTrace` is reported to rollbar.
# Usage
Examples available in the [tests](https://github.com/heroku/rollrus/blob/master/examples_test.go) or on [GoDoc](https://godoc.org/github.com/heroku/rollrus).