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

Fix Buffer, Group and FingersCrossed handlers to make use of their processors, fixes #170

This commit is contained in:
Jordi Boggiano
2013-03-17 19:36:02 +01:00
parent eaf2b07120
commit 5feb21ae1a
6 changed files with 73 additions and 0 deletions

View File

@@ -55,6 +55,12 @@ class GroupHandler extends AbstractHandler
*/
public function handle(array $record)
{
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
}
foreach ($this->handlers as $handler) {
$handler->handle($record);
}