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.

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.lightcouch</groupId>
        <artifactId>lightcouch</artifactId>
        <version>0.0.6</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.lightcouch</groupId>
      <artifactId>lightcouch</artifactId>
    </dependency>
  </dependencies>

MongoDB

MongoDB is supported through the Java MongoDB Driver.

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>mongo-java-driver</artifactId>
        <version>2.12.3</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.mongodb</groupId>
      <artifactId>mongo-java-driver</artifactId>
    </dependency>
  </dependencies>

Requirements

The NoSQL Appenders is dependent on the Log4j 2 API and implementation. For more information, see Runtime Dependencies.