Apache logging services logo Apache log4j logo

NoSQL Appenders

The NoSQL Appenders allow applications to send events to NoSQL repositories. To use it, you need both the log4j-nosql as well as the appropriate driver for your NoSQL database type.

CouchDB

Apache CouchDB is supported through the LightCouch driver.

  1. <dependencyManagement>
  2. <dependencies>
  3. <dependency>
  4. <groupId>org.lightcouch</groupId>
  5. <artifactId>lightcouch</artifactId>
  6. <version>0.0.6</version>
  7. </dependency>
  8. </dependencies>
  9. </dependencyManagement>
  10. <dependencies>
  11. <dependency>
  12. <groupId>org.lightcouch</groupId>
  13. <artifactId>lightcouch</artifactId>
  14. </dependency>
  15. </dependencies>

MongoDB

MongoDB is supported through the Java MongoDB Driver.

  1. <dependencyManagement>
  2. <dependencies>
  3. <dependency>
  4. <groupId>org.mongodb</groupId>
  5. <artifactId>mongo-java-driver</artifactId>
  6. <version>2.12.3</version>
  7. </dependency>
  8. </dependencies>
  9. </dependencyManagement>
  10. <dependencies>
  11. <dependency>
  12. <groupId>org.mongodb</groupId>
  13. <artifactId>mongo-java-driver</artifactId>
  14. </dependency>
  15. </dependencies>

Requirements

The NoSQL Appenders requires at least Java 6.