Dropwizard logging support for GELF servers.
Java
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
pom.xml
settings.xml

README.md

Dropwizard Logging GELF

A log appender factory for Dropwizard adding support for appending logs to GELF compatible servers.

Build Status Maven Central

dropwizard-logging-gelf can be found in maven central.

Installation

<dependency>
    <groupId>com.jamierf.dropwizard</groupId>
    <artifactId>dropwizard-logging-gelf</artifactId>
    <version>...</version>
</dependency>

Configuration

logging:
  appenders:
    - type: gelf
      server: localhost:9200
      defaultFields: {"host": "local-host-01", "environment": "local", "facility": "ims"}
      additionalFields: {"ms": "timestampMs", "thread_name": "threadName", "source_method_name": "SourceMethodName", "threadId": "threadId"}

License

Released under the Apache 2.0 License.