1
0
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:
Christophe Coevoet
2011-04-05 09:41:27 +02:00
parent b90eddd513
commit b2d356bbf2
4 changed files with 154 additions and 0 deletions

View File

@@ -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()