This library provides Log4J Appender [1] that writes log events to the MongoDB document oriented database [2]. This library based on http://github.com/log4mongo/log4mongo-java [3].
- MongoDbAppender - Stores a BSONed version of the Log4J LoggingEvent
- Denis Kirpichenkov
- Peter Monks ([email protected])
- Robert Stewart ([email protected])
- JDK 1.7+
- MongoDB Server v3.0+
- MongoDB Java Driver v3.0+
- Log4J 1.2+
First of all add a repository to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Then, add dependecy
<dependency>
<groupId>com.github.d0k1</groupId>
<artifactId>log4jmongo</artifactId>
<version>1.5</version>
</dependency>
If you want you may see build logs here https://jitpack.io/com/github/d0k1/log4jmongo/1.0/build.log
#Repository contents This repository contains log4appender, appender usage example, and multiline log4 log file parser.