I'm using this addon bundle for dropwizard to log messages to a Graylog server: https://github.com/gini/dropwizard-gelf
It worked out of the box simply by adding it to the pom.xml and configuring it in the config.yml of my dropwizard server. Great stuff!
The only problem is, if my Graylog server is not available during startup for some reason, the GelfAppenderFactory throws a RuntimeException and dropwizard exits. My webserver never starts just because the logging server is unavailable. Not good.
Any ideas how I can get around it? My current approach would be to copy&paste the GelfAppenderFactory to my own code and wrap the crucial part in a try/catch block. That feels rather crude... so any help is much appreciated.