1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +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)
{
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);
}
}