1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2016-07-02 15:03:11 +01:00
5 changed files with 46 additions and 3 deletions

View File

@@ -75,6 +75,16 @@ class GroupHandler extends Handler implements ProcessableHandlerInterface
*/
public function handleBatch(array $records)
{
if ($this->processors) {
$processed = array();
foreach ($records as $record) {
foreach ($this->processors as $processor) {
$processed[] = call_user_func($processor, $record);
}
}
$records = $processed;
}
foreach ($this->handlers as $handler) {
$handler->handleBatch($records);
}