mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Split interfaces and base/abstract classes into more sensible pieces
This commit is contained in:
@@ -25,8 +25,10 @@ namespace Monolog\Handler;
|
||||
* @author Bryan Davis <bd808@wikimedia.org>
|
||||
* @author Kunal Mehta <legoktm@gmail.com>
|
||||
*/
|
||||
class SamplingHandler extends AbstractHandler
|
||||
class SamplingHandler extends AbstractHandler implements ProcessableHandlerInterface
|
||||
{
|
||||
use ProcessableHandlerTrait;
|
||||
|
||||
/**
|
||||
* @var callable|HandlerInterface $handler
|
||||
*/
|
||||
@@ -69,9 +71,7 @@ class SamplingHandler extends AbstractHandler
|
||||
}
|
||||
|
||||
if ($this->processors) {
|
||||
foreach ($this->processors as $processor) {
|
||||
$record = call_user_func($processor, $record);
|
||||
}
|
||||
$record = $this->processRecord($record);
|
||||
}
|
||||
|
||||
$this->handler->handle($record);
|
||||
|
Reference in New Issue
Block a user