-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
46 lines (40 loc) · 1.23 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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) <[email protected]>
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)