Extra appenders for Logback.
Clone or download
Latest commit 6d4eb21 Nov 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add sample config about sync logging Nov 11, 2018
.gitignore Upgrade Sep 20, 2013
LICENSE Version 1.2.0 May 14, 2016
README.md Update README Nov 11, 2018
pom.xml Update to 1.5.0 Nov 11, 2018

README.md

Logback more appenders

is additional appenders for Logback.

Appenders

Latest changes

Version 1.5.0
Version 1.4.4
Version 1.4.3
  • Added new parameter to FLUENCY appender: useEventTime, set to true to use EventTime instead of standard timestamp and gain millisecond precision use fluentd option time_format to change time resolution in messages

  • Update FLUENCY dependency version to 1.6.0

Version 1.4.2
Version 1.4.1
Version 1.4.0

Installing

Install jars from Maven2 repository

Configure your pom.xml:

<dependencies>

  <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>${logback.version}</version>
  </dependency>

  <dependency>
    <groupId>com.sndyuk</groupId>
    <artifactId>logback-more-appenders</artifactId>
    <version>1.5.0</version>
  </dependency>

  <!-- [Optional] If you use The Fluentd appender, You need to add the dependency(fluent-logger). -->
  <dependency>
    <groupId>org.fluentd</groupId>
    <artifactId>fluent-logger</artifactId>
    <version>${fluentd.logger.version}</version>
  </dependency>

  <!-- [Optional] If you use The Fluency appender, You need to add the dependency(fluency). -->
  <dependency>
    <groupId>org.komamitsu</groupId>
    <artifactId>fluency</artifactId>
    <version>${fluency.version}</version>
  </dependency>

  <!-- [Optional] If you use The Amazon DynamoDB appender, You need to add the dependency(aws-java-sdk-dynamodb). -->
  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-dynamodb</artifactId>
    <version>${aws.version}</version>
  </dependency>

</dependencies>

Configure your logback.xml

You can find the sample configuration files here:

Creating Amazon DynamoDB Table

Before you use Amazon DynamoDB appender, you need to create the table on DynamoDB:

AWS Console -> DynamoDB -> Choose region -> Create Table ->

Table Name: [Table name described in logback.xml]
Partition key: "instance" as String / (Hash Attribute)
Add sort key: "id" as Number / (Range Attribute)

License

Apache License, Version 2.0