Skip to content

roothema/logback-more-appenders

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logback more appenders

is additional appenders for Logback and provide better performance and data consistency without any concern.

Appenders

Java 9 module(Jigsaw) with old Slf4j API.

This version is a patch for applications implemented with Java9 module(Jigsaw) but using Slf4j version 1.7(which is not a java 9 module), for example Spring boot doesn't allow to use Slf4j 1.8.x(org.slf4j module).

Just add it to your dependency then you can use the slf4j module in your application.

Gradle
  implementation 'com.sndyuk:logback-more-appenders:1.7.4-JAVA9MODULE_SLF4J17'
Maven
  <dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.7.4-JAVA9MODULE_SLF4J17</version>
  </dependency>
module-info.java
  requires org.slf4j;

Latest changes

Version 1.7.3
  • Use single host fluency build method when single host configured in logback xml config sndyuk#43
Version 1.7.2
  • Trivial fix
Version 1.7.1
  • Fix multithreading problem on CloudWatch and KinesisStream LogbackAppender.
Version 1.5.8
  • Minimum java target version to 7 from 6
  • Remove DynamoAppender
  • Add connectionTimeoutMilli and readTimeoutMilli properties for Fluency sndyuk#38
Version 1.5.6

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.7.4</version>
  </dependency>

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

  <!-- [Optional] If you use The Kinesis appender, You need to add the dependency(aws-java-sdk-kinesis). -->
  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-kinesis</artifactId>
    <version>${aws.version}</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-core</artifactId>
    <version>${fluency.version}</version>
    <optional>true</optional>
  </dependency>
  <dependency>
    <groupId>org.komamitsu</groupId>
    <artifactId>fluency-fluentd</artifactId>
    <version>${fluency.version}</version>
    <optional>true</optional>
  </dependency>

</dependencies>

Configure your logback.xml

You can find the sample configuration files here:

License

Apache License, Version 2.0

Packages

No packages published

Languages

  • Java 100.0%