for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Doctrine MongoDBBundle
*
* The code was originally distributed inside the Symfony framework.
* (c) Fabien Potencier <[email protected]>
* (c) Doctrine Project
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Saxulum\SaxulumWebProfiler\Logger;
/**
* An aggregate query logger.
* @author Kris Wallsmith <[email protected]>
class DoctrineMongoDbAggregateLogger implements DoctrineMongoDbLoggerInterface
{
private $loggers;
* Constructor.
* @param array $loggers An array of LoggerInterface objects
public function __construct(array $loggers)
$this->loggers = $loggers;
}
public function logQuery(array $query)
foreach ($this->loggers as $logger) {
$logger->logQuery($query);