Work on the MongoDB appender (original code provided by Vladimir Gorej) :
authorIvan Habunek <ihabunek@apache.org>
Sun, 15 May 2011 13:11:28 +0000 (13:11 +0000)
committerIvan Habunek <ihabunek@apache.org>
Sun, 15 May 2011 13:11:28 +0000 (13:11 +0000)
commit8483a4ec8ce3e1bc6109235c4248187661b71396
treed09ad3f02e6966049765b2644778667e7a6a103a
parent431294f9b623b14fcf24343e7915bc0171a0a6fe
Work on the MongoDB appender (original code provided by Vladimir Gorej)  :
* Added LoggerLoggingEventBsonifier helper class for constructing bson arrays as required by MongoDB appender.
* Adapted LoggerAppenderMongoDB to use the bsonifier helper instead of a layout.
* Removed LoggerLayoutBson since it is no longer used (maybe rework the code for a JSON appender later).
* Adapted tests where needed.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4php/trunk@1103366 13f79535-47bb-0310-9956-ffa450edef68
src/changes/changes.xml
src/main/php/Logger.php
src/main/php/appenders/LoggerAppenderMongoDB.php
src/main/php/helpers/LoggerLoggingEventBsonifier.php [moved from src/main/php/layouts/LoggerLayoutBson.php with 66% similarity]
src/test/php/appenders/LoggerAppenderMongoDBLayoutTest.php [deleted file]
src/test/php/appenders/LoggerAppenderMongoDBTest.php
src/test/php/helpers/LoggerLoggingEventBsonifierTest.php [moved from src/test/php/layouts/LoggerMongoDbBsonLayoutTest.php with 78% similarity]