Apache logging services logo Apache log4j logo

MongoDB appender

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.14.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 MongoDB Appender is dependent on the Log4j 2 API and implementation. For more information, see Runtime Dependencies.