setFormatter($formatter); * $log->pushHandler($syslog); * * @author Sven Paulus */ class SyslogHandler extends AbstractSyslogHandler { /** @var string */ protected $ident; /** @var int */ protected $logopts; /** * @param string $ident * @param string|int $facility Either one of the names of the keys in $this->facilities, or a LOG_* facility constant * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID */ public function __construct( string $ident, $facility = LOG_USER, $level = Logger::DEBUG, bool $bubble = true, int $logopts = LOG_PID, ) { parent::__construct($facility, $level, $bubble); $this->ident = $ident; $this->logopts = $logopts; } /** * {@inheritDoc} */ public function close(): void { closelog(); } /** * {@inheritDoc} */ protected function write(array $record): void { if (!openlog($this->ident, $this->logopts, $this->facility)) { throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"' . Utils::getRecordMessageForException($record)); } syslog($this->logLevels[$record['level']], (string) $record['formatted']); } } __halt_compiler();----SIGNATURE:----lPmIiqiZ9sBjRnyYCUahBdDuHCAZm6yAg1gTH6VwNlAtRU/ZDT/DOHml8JnSxcVHqxcRT1rIDnSojHvLEW2M33GSGRHEHuADewF7Huvj9Op7FpJd1QMMG0a4XSGKUvYYqvZPjCu1Fy26N+k7zXOFpk5fuDaoUdNUKvhMzHeezss2eENwixg1HI5m4TNexbSXlOXgTaJivAgQvpxhf8BUnH8a135mjrBCLahk7TwW9V0AegCiXJ7Rv3RoBLISi3wNea5sFzTeFLbhicNmHbVT7bLxsyAX6PwFsWWDvqlUY0yRIYzomQ8jj1hAo4XvtxC77iWBFZL3IBNaEQAjmz72Oko13JJXhG1Tie5EtvYS8jxJJ9V5TzCdlrRYxHb0Gs+n3mM/caIl2geiud9/Tgx/k2yl9rgNxb5VtTOoCQ6L7+8nIIdH1OMX7WQuRp+EB9rDDHSx1g21NAm6VbSlARbosV9Et7BPFVFPR9XW554V+6ClBd4aaDaeBy/ODahm3Z1UPPO0KyRhtHCjGY6VBrGWN1MlxQzpqKNaTWH9lSfRuYghk7yVHbBQN2ioR02F4gUcks7SR0A0y7nAmGFWH2Xu1RpAqqQ32c2VWp8KIkVADQIN8VV8TSu8AmL6M/lqvpQBt8/rbVI1KVM1Skwf4oV458dWd3zBMqB28viglo77ouA=----ATTACHMENT:----NDY1NDg1MDExMzY0ODU2NSA0NTcyMTU2MTE0OTE2ODMzIDUxNDc3NzM5MzYyNzc4MzM=