https://github.com/workable/dropwizard-honeybadger
Addon bundle for Dropwizard to support logging to Honeybadger
https://github.com/workable/dropwizard-honeybadger
Last synced: 2 months ago
JSON representation
Addon bundle for Dropwizard to support logging to Honeybadger
- Host: GitHub
- URL: https://github.com/workable/dropwizard-honeybadger
- Owner: Workable
- Archived: true
- Created: 2015-06-16T09:43:19.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T15:12:10.000Z (almost 2 years ago)
- Last Synced: 2025-03-13T19:45:32.468Z (about 1 year ago)
- Language: Java
- Size: 7.81 KB
- Stars: 0
- Watchers: 63
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dropwizard Honeybadger
===============
Addon for [Dropwizard](http://www.dropwizard.io/) adding support for logging to [honeybadger](https://www.honeybadger.io).
Usage
-----
The Dropwizard honeybadger provides an `AppenderFactory` which is automatically registered in Dropwizard and will send log
messages directly to your configured honeybadger account.
Configuration
-------------
The Logback Honeybadger appender can be configured using the attributes outlined in
[honeybadger-logback-appender README](https://github.com/Workable/honeybadger-java/blob/master/honeybadger-logback-appender/README.md).
Your YAML configuration could include the following snippet to configure the `HoneybadgerAppender`:
appenders:
- type: console
threshold: DEBUG
target: stderr
- type: honeybadger
threshold: INFO
apiKey: xxxxx
# async: true
# maxThreads: 1
# queuesize: 10
# priority: 1
Properties
----------
* **apiKey**: Specify the apiKey from your Honeybadger account
* **async**: The error dispatching to honebadger.io is performed asynchronously via http in order to avoid performance impact. Defaults to true;
* **maxThreads**: By default the thread pool used for async dispatching contains one thread per processor available to the JVM. It's possible to manually set the number of threads (for example if you want only one thread) with the option `maxThreads`:
* **queuesize**: The default queue used to store the not yet processed events doesn't have a limit. Depending on the environment (if the memory is sparse) it is important to be able to control the size of that queue to avoid memory issues.
* **priority**: As in most cases sending error to Honebadger isn't as important as an application running smoothly, the threads have a [minimal priority](http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#MIN_PRIORITY).
Contributors
------------
* [Nikolaos Dimos](https://github.com/nikosd23)