Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (40 sloc) 1.23 KB
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)