1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 08:36:33 +02:00

Merge branch '1.x'

This commit is contained in:
Jordi Boggiano
2016-03-01 17:15:43 +00:00
19 changed files with 634 additions and 44 deletions

View File

@@ -11,6 +11,8 @@
namespace Monolog\Handler;
use Monolog\Formatter\FormatterInterface;
/**
* Forwards records to multiple handlers
*
@@ -77,4 +79,16 @@ class GroupHandler extends Handler implements ProcessableHandlerInterface
$handler->handleBatch($records);
}
}
/**
* {@inheritdoc}
*/
public function setFormatter(FormatterInterface $formatter)
{
foreach ($this->handlers as $handler) {
$handler->setFormatter($formatter);
}
return $this;
}
}