Example #1
0
 /**
  * @param string $appname Application name to report to syslog
  * @param string $host Syslog host
  * @param int $port Syslog port
  * @param int $facility Syslog message facility
  * @param string $level The minimum logging level at which this handler
  *   will be triggered
  * @param bool $bubble Whether the messages that are handled can bubble up
  *   the stack or not
  */
 public function __construct($appname, $host, $port = 514, $facility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($host, $port, $facility, $level, $bubble);
     $this->appname = $appname;
     $this->hostname = php_uname('n');
 }
 /**
  * Конструктор.
  * @param string $sourceAppName имя приложения-отправителя
  * @param string $sourceHostName имя хоста-отправителя
  * @param string $syslogHost syslog-хост
  * @param int $syslogPort syslog-порт
  * @param mixed $syslogFacility источник логирования
  * @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($sourceAppName, $sourceHostName, $syslogHost, $syslogPort, $syslogFacility = LOG_USER, $level = Logger::DEBUG, $bubble = true)
 {
     parent::__construct($syslogHost, $syslogPort, $syslogFacility, $level, $bubble);
     $this->appName = $sourceAppName;
     $this->hostName = $sourceHostName;
 }