MongoDB appender

Java MongoDB 驱动程序支持MongoDB

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

Requirements

MongoDB Appender 取决于 Log4j 2 API 和实现。有关更多信息,请参见Runtime Dependencies