/**
  * @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 = ehough_epilog_Logger::DEBUG, $bubble = true)
 {
     parent::__construct($facility, $level, $bubble);
     $this->socket = new ehough_epilog_handler_syslogudp_UdpSocket($host, $port ? $port : 514);
 }
Example #2
0
 /**
  * @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 = ehough_epilog_Logger::DEBUG, $bubble = true, $logopts = LOG_PID)
 {
     parent::__construct($facility, $level, $bubble);
     $this->ident = $ident;
     $this->logopts = $logopts;
 }