A log4j Appender for couchDB
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.md
log4j.xml
pom.xml

README.md

An appender for writing log4j logging events to a couch database http://couchdb.apache.org

To use, simply place the log4couch-*.jar in your classpath next to the log4j jar.

This jar is also be required: gson-2.2.2.jar

Append these values to your log4j.xml:

<appender name="couchdb" class="log4couch.CouchAppender">
  <param name="server" value="http://COUCHDB_HOST:5984/" />
  <param name="database" value="COUCHDB_LOG_DATABASE" />
  <param name="applicationName" value="APPLICATION_NAME" />
</appender>

Or these values to your .properties file:

log4j.appender.couch=log4couch.CouchAppender
log4j.appender.couch.server=http://COUCHDB_HOST:5984/
log4j.appender.couch.database=COUCHDB_LOG_DATABASE
log4j.appender.couch.applicationName=APPLICATION_NAME

You can fetch the jar file from: http://joeo.ws/maven/log4couch/log4couch/1.1/log4couch-1.1.jar