Example #1
0
 /**
  * @param string  $host
  * @param int     $port
  * @param mixed   $facility
  * @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
  */
 public function __construct($host, $port = 514, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($facility, $level, $bubble);
     $this->socket = new UdpSocket($host, $port ?: 514);
 }
 /**
  * @param string  $ident
  * @param mixed   $facility
  * @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 int     $logopts Option flags for the openlog() call, defaults to LOG_PID
  */
 public function __construct($ident, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true, $logopts = LOG_PID)
 {
     parent::__construct($facility, $level, $bubble);
     $this->ident = $ident;
     $this->logopts = $logopts;
 }