is additional appenders for Logback.
-
- depends on fluent-logger for Java.
- Install fluentd before running logger.
-
- depends on fluency.
- Install fluentd before running logger.
-
- depends on aws-java-sdk.
- Create Amazon DynamoDB Table
-
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
- Added new fluentds fields to FLUENCY appender.
See details: sndyuk#17
- Added the new appender for Fluency.
See (FLUENCY) appender on logback-appenders.xml.
sndyuk#14
- If you use same logback.xml as before, the appenders work synchronously. Now you can choose sync or async fluent appenders on config file.
See (FLUENT_SYNC | FLUENT) appenders on logback-appenders.xml.
sndyuk#13
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.4.2</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). -->
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>${aws.version}</version>
</dependency>
</dependencies>
You can find the sample configuration files here:
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)