Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

log4php appender to MongoDB database.

branch: refactor

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
README
log4mongo-php
===============
log4mongo-php is log4php appender to MongoDB database.
log4mongo-php is using mongodb-php driver - http://www.php.net/manual/en/book.mongo.php

Requirements
============
- 5.x > required
- php MongoDB driver
- log4php
- tested against MongoDB 1.6.5, mongo php driver 1.1.0, log4php - SVN Revision 1051446

Configuration
=============
Example appender XML configuration::

<appender name="MongoAppender" class="LoggerAppenderMongoDB" threshold="WARN">
  <!-- MongoDB connection options -->
  <host value="localhost" />
  <port value="27017" />
  <databaseName value="log4php_mongodb" />
  <collectionName value="logs" />
  <!--
  Uncomment following for MongoDB authentication
  See http://www.mongodb.org/display/DOCS/Security+and+Authentication
  <userName value="char0n" />
  <password value="mysecretpass" />
  -->
</appender>

Author
======
char0n (Vladimir Gorej) <gorej@mortality.sk>

Credits
=======
Special credits to Jozef Sevcik for inspiration
writing this appender

References
==========
[1] http://www.mongodb.org/
[2] http://incubator.apache.org/log4php/
[3] http://www.php.net/manual/en/book.mongo.php
[4] http://github.com/mongodb/mongo-php-driver/downloads
[5] http://downloads.php.net/pierre/ (search mongo)
Something went wrong with that request. Please try again.