Skip to content

danischroeter/logback-more-appenders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logback more appenders

is appenders for Logback. You can logging to DynamoDB, Fluentd and more with the logback appender.

Appenders

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.3.1</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 Amazon DynamoDB appender, You need to add the dependency(aws-java-sdk). -->
  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk</artifactId>
    <version>${aws.version}</version>
  </dependency>

</dependencies>

Configure your logback.xml

You can find configuration files example here:

Creating Amazon DynamoDB Table

Before you use The 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

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%