Example #1
0
 /**
  * @param HandlerInterface $handler         Handler.
  * @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, $bufferLimit = 0, $level = Logger::DEBUG, $bubble = true, $flushOnOverflow = false)
 {
     parent::__construct($level, $bubble);
     $this->handler = $handler;
     $this->bufferLimit = (int) $bufferLimit;
     $this->flushOnOverflow = $flushOnOverflow;
 }
Example #2
0
 /**
  * @param integer $level The minimum logging level at which this handler will be triggered
  */
 public function __construct($level = Logger::DEBUG)
 {
     parent::__construct($level, false);
 }