LoggerAppenderMongoDBLoggerAppenderMongoDB appends log events to a mongoDB instance. MongoDB is a scalable, high-performance, open source, document-oriented database. ParametersThe following parameters are available:
ExamplesThis example shows how to configure LoggerAppenderMongoDB to log to a remote database.
<configuration xmlns="http://logging.apache.org/log4php/"> <appender name="default" class="LoggerAppenderMongoDB"> <param name="host" value="mongodb://example.com" /> <param name="username" value="logger" /> <param name="password" value="secret" /> </appender> <root> <appender_ref ref="default" /> </root> </configuration> array( 'appenders' => array( 'default' => array( 'class' => 'LoggerAppenderMongoDB', 'params' => array( 'host' => 'mongodb://example.com', 'username' => 'logger', 'password' => 'secret', ), ), ), 'rootLogger' => array( 'appenders' => array('default'), ), ); |