1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

Split interfaces and base/abstract classes into more sensible pieces

This commit is contained in:
Jordi Boggiano
2015-10-09 20:41:09 +01:00
parent 39f8a20e6d
commit 902c0c8694
17 changed files with 356 additions and 209 deletions

View File

@@ -21,8 +21,10 @@ use Monolog\Logger;
*
* @author Christophe Coevoet <stof@notk.org>
*/
class BufferHandler extends AbstractHandler
class BufferHandler extends AbstractHandler implements ProcessableHandlerInterface
{
use ProcessableHandlerTrait;
protected $handler;
protected $bufferSize = 0;
protected $bufferLimit;
@@ -70,9 +72,7 @@ class BufferHandler extends AbstractHandler
}
if ($this->processors) {
foreach ($this->processors as $processor) {
$record = call_user_func($processor, $record);
}
$record = $this->processRecord($record);
}
$this->buffer[] = $record;