Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Addon bundle for Dropwizard to support logging to Honeybadger

Notifications You must be signed in to change notification settings

Workable/dropwizard-honeybadger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dropwizard Honeybadger

Addon for Dropwizard adding support for logging to honeybadger.

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.

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.

Contributors

About

Addon bundle for Dropwizard to support logging to Honeybadger

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages