An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/hazcod/rollrus

Package rollrus combines github.com/rollbar/rollbar-go with github.com/sirupsen/logrus via logrus.Hook mechanism, so that whenever logrus' logger.Error/f(), logger.Fatal/f() or logger.Panic/f() are used the messages are intercepted and sent to Rollbar. Using SetupLogging should suffice for basic use cases that use the logrus singleton logger. More custom uses are supported by creating a new Hook with NewHook and registering that hook with the logrus Logger of choice. The levels can be customized with the WithLevels OptionFunc. Specific errors can be ignored with the WithIgnoredErrors OptionFunc. This is useful for ignoring errors such as context.Canceled. See the Examples in the tests for more usage.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20190619091457-6a5adbe5542b
over 6 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/hazcod/rollrus
spec
License MIT
Namespace github.com/hazcod
First Release over 6 years ago
Last Synced 12 days ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%