Dropwizard logging support for GELF

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

DropWizard Container Microservices Logging Application Layer Libs
GroupId

GroupId

com.jamierf.dropwizard
ArtifactId

ArtifactId

dropwizard-logging-gelf
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

Dropwizard logging support for GELF
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/reines/dropwizard-logging-gelf

Download dropwizard-logging-gelf

How to add to project

<!-- https://jarcasting.com/artifacts/com.jamierf.dropwizard/dropwizard-logging-gelf/ -->
<dependency>
    <groupId>com.jamierf.dropwizard</groupId>
    <artifactId>dropwizard-logging-gelf</artifactId>
    <version>0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.jamierf.dropwizard/dropwizard-logging-gelf/
implementation 'com.jamierf.dropwizard:dropwizard-logging-gelf:0.4'
// https://jarcasting.com/artifacts/com.jamierf.dropwizard/dropwizard-logging-gelf/
implementation ("com.jamierf.dropwizard:dropwizard-logging-gelf:0.4")
'com.jamierf.dropwizard:dropwizard-logging-gelf:jar:0.4'
<dependency org="com.jamierf.dropwizard" name="dropwizard-logging-gelf" rev="0.4">
  <artifact name="dropwizard-logging-gelf" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.jamierf.dropwizard', module='dropwizard-logging-gelf', version='0.4')
)
libraryDependencies += "com.jamierf.dropwizard" % "dropwizard-logging-gelf" % "0.4"
[com.jamierf.dropwizard/dropwizard-logging-gelf "0.4"]

Dependencies

compile (2)

Group / Artifact Type Version
io.dropwizard : dropwizard-logging jar 0.7.0
org.realityforge.gelf4j : gelf4j jar 1.8

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.easytesting : fest-assert-core jar 2.0M10

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.4