Monolog\Handler\AbstractHandler::__construct PHP Method

__construct() public method

public __construct ( integer $level = Logger::DEBUG, boolean $bubble = true )
$level integer The minimum logging level at which this handler will be triggered
$bubble boolean Whether the messages that are handled can bubble up the stack or not
    public function __construct($level = Logger::DEBUG, $bubble = true)
    {
        $this->level = $level;
        $this->bubble = $bubble;
    }

Usage Example

 /**
  * MemcachedBufferHandler constructor.
  *
  * @param HandlerInterface $handler
  * @param \Memcached       $memcachedDriver You may pass your own cache driver if it implements add(), get(), set()
  * @param int              $interval        How often messages will be thrown. In seconds
  * @param int              $level
  * @param bool|true        $bubble
  */
 public function __construct(HandlerInterface $handler, $memcachedDriver, $interval, $level = Logger::DEBUG, $bubble = true)
 {
     $this->handler = $handler;
     $this->memcached = $memcachedDriver;
     $this->interval = $interval;
     parent::__construct($level, $bubble);
 }
All Usage Examples Of Monolog\Handler\AbstractHandler::__construct