Skip to content

Commit

Permalink
Chore
Browse files Browse the repository at this point in the history
  • Loading branch information
sndyuk committed Apr 24, 2021
1 parent 5f615ea commit fc2ca5d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 28 deletions.
34 changes: 24 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Logback more appenders
is additional appenders for [Logback](http://logback.qos.ch/) and provide better performance and data consistency without any concern.

## Appenders

- [CloudWatch](https://aws.amazon.com/cloudwatch/)
- depends on [aws-java-sdk-logs](http://aws.amazon.com/sdkforjava/).
- depends on [cloudwatchlogs(v2) or aws-java-sdk-logs(v1)](http://aws.amazon.com/sdkforjava/).

- [Kinesis Stream](https://aws.amazon.com/kinesis/data-streams/)
- depends on [aws-java-sdk-kinesis](http://aws.amazon.com/sdkforjava/).
- depends on [kinesis(v2) or aws-java-sdk-kinesis(v1)](http://aws.amazon.com/sdkforjava/).

- [fluentd](http://fluentd.org/)
- depends on [fluent-logger for Java](https://github.com/fluent/fluent-logger-java).
Expand All @@ -24,15 +25,15 @@ Just add it to your dependency then you can use the slf4j module in your applica

##### Gradle
```
implementation 'com.sndyuk:logback-more-appenders:1.8.5-JAVA9MODULE_SLF4J17'
implementation 'com.sndyuk:logback-more-appenders:1.8.6-JAVA9MODULE_SLF4J17'
```

##### Maven
```
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.8.5-JAVA9MODULE_SLF4J17</version>
<version>1.8.6-JAVA9MODULE_SLF4J17</version>
</dependency>
```

Expand All @@ -44,6 +45,9 @@ Just add it to your dependency then you can use the slf4j module in your applica

### Latest changes

##### Version 1.8.6
* Add AWS V2 CloudWatch and Kinesis appenders: https://github.com/sndyuk/logback-more-appenders/pull/64

##### Version 1.8.5
* Add option for Fluency appender: `jvmHeapBufferMode`

Expand All @@ -69,11 +73,6 @@ Just add it to your dependency then you can use the slf4j module in your applica
* Add options for Fluency appender: `bufferChunkRetentionTimeMillis`
* Fix bug: Messages were lost sometimes when the messages had been waiting for flushing on shutting down an application.
* Fix bug: Fluent appender: Do not raise an error when a fluentd server is down.

##### Version 1.8.0

* Upgrade Fluency version from 2.2.1 to 2.4.1 https://github.com/sndyuk/logback-more-appenders/pull/48
* Remove redundant "msg" field from Fluentd request. Use "message" instead.

## Installing

Expand All @@ -91,7 +90,14 @@ Configure your pom.xml:
<dependency>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.8.5</version>
<version>1.8.6</version>
</dependency>

<!-- [Optional] If you use The CloudWatch V2 appender, You need to add the dependency(cloudwatchlogs). -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
<version>${aws-v2.version}</version>
</dependency>

<!-- [Optional] If you use The CloudWatch appender, You need to add the dependency(aws-java-sdk-logs). -->
Expand All @@ -101,6 +107,14 @@ Configure your pom.xml:
<version>${aws.version}</version>
</dependency>

<!-- [Optional] If you use The Kinesis V2 appender, You need to add the dependency(kinesis). -->
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>kinesis</artifactId>
<version>${aws-v2.version}</version>
<optional>true</optional>
</dependency>

<!-- [Optional] If you use The Kinesis appender, You need to add the dependency(aws-java-sdk-kinesis). -->
<dependency>
<groupId>com.amazonaws</groupId>
Expand Down
18 changes: 9 additions & 9 deletions pom-JAVA9MODULE_SLF4J17.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.8.5-JAVA9MODULE_SLF4J17</version>
<version>1.8.6-JAVA9MODULE_SLF4J17</version>
<name>logback-more-appenders</name>
<description>logback appenders.</description>
<url>https://github.com/sndyuk/logback-more-appenders</url>
Expand Down Expand Up @@ -181,30 +181,30 @@
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-logs</artifactId>
<version>${aws.version}</version>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
<version>${aws-v2.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-kinesis</artifactId>
<artifactId>aws-java-sdk-logs</artifactId>
<version>${aws.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
<artifactId>kinesis</artifactId>
<version>${aws-v2.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>kinesis</artifactId>
<version>${aws-v2.version}</version>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-kinesis</artifactId>
<version>${aws.version}</version>
<optional>true</optional>
</dependency>

Expand Down
18 changes: 9 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sndyuk</groupId>
<artifactId>logback-more-appenders</artifactId>
<version>1.8.5</version>
<version>1.8.6</version>
<name>logback-more-appenders</name>
<description>logback appenders.</description>
<url>https://github.com/sndyuk/logback-more-appenders</url>
Expand Down Expand Up @@ -144,30 +144,30 @@
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-logs</artifactId>
<version>${aws.version}</version>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
<version>${aws-v2.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-kinesis</artifactId>
<artifactId>aws-java-sdk-logs</artifactId>
<version>${aws.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>cloudwatchlogs</artifactId>
<artifactId>kinesis</artifactId>
<version>${aws-v2.version}</version>
<optional>true</optional>
</dependency>

<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>kinesis</artifactId>
<version>${aws-v2.version}</version>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk-kinesis</artifactId>
<version>${aws.version}</version>
<optional>true</optional>
</dependency>

Expand Down
5 changes: 5 additions & 0 deletions src/java9/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@
requires static aws.java.sdk.core;
requires static aws.java.sdk.logs;
requires static aws.java.sdk.kinesis;
requires static software.amazon.awssdk.core;
requires static software.amazon.awssdk.auth;
requires static software.amazon.awssdk.regions;
requires static software.amazon.awssdk.services.kinesis;
requires static software.amazon.awssdk.services.cloudwatchlogs;
}

0 comments on commit fc2ca5d

Please sign in to comment.