|
|
@@ -31,16 +31,16 @@ class BufferHandler extends AbstractHandler
|
|
|
|
|
|
/**
|
|
|
* @param HandlerInterface $handler Handler.
|
|
|
- * @param integer $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
|
|
|
+ * @param integer $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer.
|
|
|
* @param integer $level The minimum logging level at which this handler will be triggered
|
|
|
* @param Boolean $bubble Whether the messages that are handled can bubble up the stack or not
|
|
|
* @param Boolean $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded
|
|
|
*/
|
|
|
- public function __construct(HandlerInterface $handler, $bufferSize = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
|
|
|
+ public function __construct(HandlerInterface $handler, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
|
|
|
{
|
|
|
parent::__construct($level, $bubble);
|
|
|
$this->handler = $handler;
|
|
|
- $this->bufferLimit = (int) $bufferSize;
|
|
|
+ $this->bufferLimit = (int) $bufferLimit;
|
|
|
$this->flushOnOverflow = $flushOnOverflow;
|
|
|
|
|
|
// __destructor() doesn't get called on Fatal errors
|