1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 22:42:38 +01:00

Code formatting.

This commit is contained in:
armetiz 2012-02-27 09:14:44 +01:00
parent a04bec0bec
commit 37f6766b9a

View File

@ -24,20 +24,19 @@ use Monolog\Logger;
*
* @author Thomas Tourlourat <thomas@tourlourat.com>
*/
class MongoDBHandler extends AbstractProcessingHandler
{
class MongoDBHandler extends AbstractProcessingHandler {
private $mongoCollection;
public function __construct(\Mongo $mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true)
{
$this->mongoCollection = $this->mongo->selectCollection ($database, $collection);
public function __construct(\Mongo $mongo, $database, $collection, $level = Logger::DEBUG, $bubble = true) {
$this->mongoCollection = $this->mongo->selectCollection($database, $collection);
parent::__construct($level, $bubble);
}
protected function write(array $record)
{
protected function write(array $record) {
unset($record["formatted"]);
$this->mongoCollection->save ($record);
$this->mongoCollection->save($record);
}
}