mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 00:56:08 +02:00
Added a BufferHandler to allow batch processing of the records
This commit is contained in:
@@ -62,6 +62,13 @@ abstract class AbstractHandler implements HandlerInterface
|
||||
return false === $this->bubble;
|
||||
}
|
||||
|
||||
public function handleBatch(array $records)
|
||||
{
|
||||
foreach ($records as $record) {
|
||||
$this->handle($record);
|
||||
}
|
||||
}
|
||||
|
||||
abstract public function write(array $record);
|
||||
|
||||
public function close()
|
||||
|
Reference in New Issue
Block a user