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